404
+Oops! Page not found.
++ We could not find the page you were looking for. +
+diff --git a/code/public/.htaccess b/code/.htaccess
similarity index 100%
rename from code/public/.htaccess
rename to code/.htaccess
diff --git a/code/app/Exceptions/Handler.php b/code/app/Exceptions/Handler.php
deleted file mode 100644
index c21ad8b65..000000000
--- a/code/app/Exceptions/Handler.php
+++ /dev/null
@@ -1,50 +0,0 @@
-
- */
-class MailController extends Controller {
-
- /**
- * @var string
- */
- public $email = "";
-
- /**
- * @var string
- */
- public $stream = "";
-
- /**
- * constructor
- * Create a new controller instance.
- * @param type TicketController $TicketController
- */
- public function __construct(TicketController $TicketController) {
- $this->TicketController = $TicketController;
- }
-
- /**
- * Decode Imap text
- * @param type $str
- * @return type string
- */
- function decode_imap_text($str) {
- $result = '';
- $decode_header = imap_mime_header_decode($str);
- foreach ($decode_header AS $obj) {
- $result .= htmlspecialchars(rtrim($obj->text, "\t"));
- }
- return $result;
- }
-
- /**
- * get Imap data
- */
- function getdata() {
- /**
- * fetching all the emails allowed to
- * check for mails to read tickets
- */
- $email = new Emails;
- $mailboxes = $email->get();
-
- //check for any value in $mailbox
- if (count($mailboxes) >= 0) {
- foreach ($mailboxes as $current_mailbox) {
- //checking for fetching status of the emails
- if ($current_mailbox['fetching_status']) {
- /**
- *@imap_open requres three arguments for
- * reading mails in each emails
- *
- * 1. Host
- * 2. email address
- * 3. password
- */
- $stream = @imap_open($current_mailbox['fetching_host'], $current_mailbox['email_address'], $current_mailbox['password']);
- /**
- * @var $testvar type string
- */
- $testvar = "";
- // checking for any result in imap_open with value
- if ($stream >= 0) {
- /**
- * @imap_search requires two arguments to check
- * from when to check for mails
- *
- * 1. result of @imap_open $stream
- * 2. date in negative
- */
- $emails = imap_search($stream, 'SINCE ' . date('d-M-Y', strtotime("-1 day")));
- // checking if $emails has received any value
- if ($emails != false) {
- // count for mails
- if (count($emails) >= 0) {
- rsort($emails);
- foreach ($emails as $email_id) {
- /**
- * @imap_fetch_overview requires three arguments to check
- * the overview of each mails
- *
- * 1. result of @imap_open $stream
- * 2. emails numbers $emails_id
- * 3. and a 0 value
- */
- $overview = imap_fetch_overview($stream, $email_id, 0);
- $var = $overview[0]->seen ? 'read' : 'unread';
- // check for unread messages
- if ($var == 'read') {
- $testvar = 'set';
- /**
- * fetching overview details fo each mails
- *
- * 1. from address
- * 2. subject
- * 3. date and time
- */
- $from = $this->decode_imap_text($overview[0]->from);
- $subject = $this->decode_imap_text($overview[0]->subject);
- $datetime = $overview[0]->date;
- // separate date and time
- $date_time = explode(" ", $datetime);
- $date = $date_time[1] . "-" . $date_time[2] . "-" . $date_time[3] . " " . $date_time[4];
-
- //=======================================================================
- // check user
- //=======================================================================
- // $subject = $subject;
- // $match = '/^[[A-Z]{4}-[0-9]{4}-[0-9]{7}]][A-z0-9]$/';
- // if(preg_match($match, $subject))
- // {
- // echo "success";
- // }
- // else
- // {
- // echo "fail";
- // }
- $emailadd = explode('&', $from);
- $username = $emailadd[0];
- $emailadd = substr($emailadd[1], 3);
- $date = date('Y-m-d H:i:s', strtotime($date));
- $system = "Email";
- $phone = "";
- $helptopic = $this->TicketController->default_helptopic();
- $sla = $this->TicketController->default_sla();
- $structure = imap_fetchstructure($stream, $email_id);
- // $image1 = $structure->parts[0]->parts[1]->parameters[0]->value;
- // $image = $structure->parts[1]->parameters[0]->value;
- // echo '
+ We could not find the page you were looking for.
+ Sign in to start your session Enter E-mail to reset password Registration Reset Password
+ We could not find the page you were looking for.
+
+ We are working on it.
+ ';
- // echo '
';
- // dd($structure);
-
- /**
- * There are 5 types of mail readable formats
- *
- * 1. Html
- * 2. Alternative
- * 3. Related
- * 4. Mixed
- */
-
- // checking if the format is Html
- if ($structure->subtype == 'HTML') {
- $body2 = imap_fetchbody($stream, $email_id, 1);
- if ($body2 == null) {
- $body2 = imap_fetchbody($stream, $email_id, 1);
- }
- $body = quoted_printable_decode($body2);
- // $body = explode("---Reply above this line---", $body);
- // echo $body;
- // echo "0";
- }
- // checking if the format is Alternative
- if ($structure->subtype == 'ALTERNATIVE') {
- if (isset($structure->parts)) {
- $body2 = imap_fetchbody($stream, $email_id, 1.2);
- if ($body2 == null) {
- $body2 = imap_fetchbody($stream, $email_id, 1);
- }
- $body = quoted_printable_decode($body2);
- // $body = explode("---Reply above this line---", $body);
- // echo $body[0];
- }
- }
- // checking if the format is related
- if ($structure->subtype == 'RELATED') {
- if (isset($structure->parts)) {
- $parts = $structure->parts;
- $i = 0;
- $body2 = imap_fetchbody($stream, $email_id, 1.2);
- if ($body2 == null) {
- $body2 = imap_fetchbody($stream, $email_id, 1);
- }
- $body = quoted_printable_decode($body2);
- foreach ($parts as $part) {
- if ($parts[$i]) {
- }
- $i++;
- if (isset($parts[$i])) {
- if ($parts[$i]->ifid == 1) {
- $id = $parts[$i]->id;
- $imageid = substr($id, 1, -1);
- $imageid = "cid:" . $imageid;
- if ($parts[$i]->ifdparameters == 1) {
- foreach ($parts[$i]->dparameters as $object) {
- if (strtolower($object->attribute) == 'filename') {
- $filename = $object->value;
- }
- }
- }
- if ($parts[$i]->ifparameters == 1) {
- foreach ($parts[$i]->parameters as $object) {
- if (strtolower($object->attribute) == 'name') {
- $name = $object->value;
- }
- }
- }
- $body = str_replace($imageid, $filename, $body);
-
- // $ticket_Thread = new Ticket_attachments;
- // // $ticket_Thread->thread_id = $thread_id;
- // $ticket_Thread->name = $filename;
- // // $ticket_Thread->size = $filesize;
- // // $ticket_Thread->type = $ext;
- // $ticket_Thread->content = '
';
- // $ticket_Thread->save();
- // // $body = explode("---Reply above this line---", $body);
- // echo $body[0];
- // echo "2";
- }
- }
- }
- }
- }
- //checking if the format is mixed
- elseif ($structure->subtype == 'MIXED') {
- if (isset($structure->parts)) {
- $parts = $structure->parts;
-
- // subtype = ALTERNATIVE
- if ($parts[0]->subtype == 'ALTERNATIVE') {
- if (isset($structure->parts)) {
- $body2 = imap_fetchbody($stream, $email_id, 1.2);
- if ($body2 == null) {
- $body2 = imap_fetchbody($stream, $email_id, 1);
- }
- $body = quoted_printable_decode($body2);
- }
- }
- // subtype = RELATED
- if ($parts[0]->subtype == 'RELATED') {
- if (isset($parts[0]->parts)) {
- $parts = $parts[0]->parts;
- $i = 0;
-
- $body2 = imap_fetchbody($stream, $email_id, 1.1);
- if ($body2 == null) {
- $body2 = imap_fetchbody($stream, $email_id, 1);
- }
- $body = quoted_printable_decode($body2);
- $name = "";
- foreach ($parts as $part) {
- if ($parts[0]) {
- }
- $i++;
- if (isset($parts[$i])) {
- if ($parts[$i]->ifid == 1) {
- $id = $parts[$i]->id;
- $imageid = substr($id, 1, -1);
- $imageid = "cid:" . $imageid;
- if ($parts[$i]->ifdparameters == 1) {
- foreach ($parts[$i]->dparameters as $object) {
- if (strtolower($object->attribute) == 'filename') {
- $filename = $object->value;
- }
- }
- }
- if ($parts[$i]->ifparameters == 1) {
- foreach ($parts[$i]->parameters as $object) {
- if (strtolower($object->attribute) == 'name') {
- $name = $object->value;
- }
- }
- }
- }
- $body = str_replace($imageid, $name, $body);
- // $body = explode("---Reply above this line---", $body);
- // echo $body[0];
- // echo '3'
- }
- }
- }
- }
- }
- // dd($structure);
- }
- // $ticket = new Tickets;
- // $ticket->name = $from;
- // $ticket->subject = $subject;
- // $ticket->body = $body2;
- // $ticket->date = $datetime;
- // $ticket->save();
- // $ticket = new Ticket_Thread;
- // $ticket->name = $from;
- // $ticket->subject = $subject;
- // $ticket->body = $body2;
- // $ticket->date = $datetime;
- // $ticket->save();
- $priority = '1';
- if ($this->TicketController->create_user($emailadd, $username, $subject, $body, $phone, $helptopic, $sla, $priority, $system) == true) {
- $thread_id = Ticket_Thread::whereRaw('id = (select max(`id`) from ticket_thread)')->first();
- $thread_id = $thread_id->id;
- if ($this->get_attachment($structure, $stream, $email_id, $thread_id) == true) {
-
- }
- }
- } else {
-
- }
- }
- }
- }
- imap_close($stream);
- }
- }
- }
- }
- }
-
- /**
- * Get attachments data from mail
- * @param type $structure
- * @param type $stream
- * @param type $email_id
- * @param type $thread_id
- * @return type bool
- */
- public function get_attachment($structure, $stream, $email_id, $thread_id) {
- // checking if the mails has attachments
- if (isset($structure->parts) && count($structure->parts)) {
- for ($i = 0; $i < count($structure->parts); $i++) {
- $attachments[$i] = array(
- 'is_attachment' => false,
- 'filename' => '',
- 'name' => '',
- 'attachment' => '');
- // checking for files
- if ($structure->parts[$i]->ifdparameters) {
- foreach ($structure->parts[$i]->dparameters as $object) {
- if (strtolower($object->attribute) == 'filename') {
- $attachments[$i]['is_attachment'] = true;
- $attachments[$i]['filename'] = $object->value;
- }
- }
- }
- // checking for files
- if ($structure->parts[$i]->ifparameters) {
- foreach ($structure->parts[$i]->parameters as $object) {
- if (strtolower($object->attribute) == 'name') {
- $attachments[$i]['is_attachment'] = true;
- $attachments[$i]['name'] = $object->value;
- }
- }
- }
- /**
- * All over again checking for the availability of attachment
- */
- if ($attachments[$i]['is_attachment']) {
- $attachments[$i]['attachment'] = imap_fetchbody($stream, $email_id, $i + 1);
- // decoding if encoded in base64_encode format else quoted_printable_encode
- if ($structure->parts[$i]->encoding == 3) {
- $attachments[$i]['attachment'] = base64_decode($attachments[$i]['attachment']);
- } elseif ($structure->parts[$i]->encoding == 4) {
- $attachments[$i]['attachment'] = quoted_printable_decode($attachments[$i]['attachment']);
- }
- }
- }
- // calling the save method to save each attachments
- if ($this->save_attcahments($attachments, $thread_id) == true) {
- return true;
- }
- }
- }
-
- /**
- * Function to save attachments
- * @param type $attachments
- * @param type $thread_id
- * @return type bool
- */
- public function save_attcahments($attachments, $thread_id) {
- if (count($attachments) != 0) {
- foreach ($attachments as $at) {
- if ($at['is_attachment'] == 1) {
- $str = str_shuffle('abcdefghijjklmopqrstuvwxyz');
- $filename = $at['filename'];
- $ext = pathinfo($filename, PATHINFO_EXTENSION);
- $tmpName = $at['filename'];
- $fp = fopen($tmpName, 'r');
- $content = fread($fp, filesize($tmpName));
- $content2 = file_put_contents($at['filename'], $at['attachment']);
- $filesize = $content2;
- $ticket_Thread = new Ticket_attachments;
- $ticket_Thread->thread_id = $thread_id;
- $ticket_Thread->name = $filename;
- $ticket_Thread->size = $filesize;
- $ticket_Thread->type = $ext;
- $ticket_Thread->content = $fp;
- $ticket_Thread->save();
- }
- }
- }
- return true;
- }
-}
diff --git a/code/app/Http/Controllers/Agent/TicketController.php b/code/app/Http/Controllers/Agent/TicketController.php
deleted file mode 100644
index f7aea357b..000000000
--- a/code/app/Http/Controllers/Agent/TicketController.php
+++ /dev/null
@@ -1,578 +0,0 @@
-
- */
-class TicketController extends Controller {
-
- /**
- * Create a new controller instance.
- * @return type response
- */
- public function __construct() {
- $this->middleware('auth');
- }
-
- /**
- * Show the ticket list page
- * @return type response
- */
- public function ticket_list() {
- return view('themes.default1.agent.ticket.ticket');
- }
-
- /**
- * Show the Open ticket list page
- * @return type response
- */
- public function open_ticket_list() {
- return view('themes.default1.agent.ticket.open');
- }
-
- /**
- * Show the answered ticket list page
- * @return type response
- */
- public function answered_ticket_list() {
- return view('themes.default1.agent.ticket.answered');
- }
-
- /**
- * Show the Myticket list page
- * @return type response
- */
- public function myticket_ticket_list() {
- return view('themes.default1.agent.ticket.myticket');
- }
-
- /**
- * Show the Overdue ticket list page
- * @return type response
- */
- public function overdue_ticket_list() {
- return view('themes.default1.agent.ticket.overdue');
- }
-
- /**
- * Show the Closed ticket list page
- * @return type response
- */
- public function closed_ticket_list() {
- return view('themes.default1.agent.ticket.closed');
- }
-
- /**
- * Show the New ticket page
- * @return type response
- */
- public function newticket() {
- return view('themes.default1.agent.ticket.new');
- }
-
- /**
- * Save the data of new ticket and show the New ticket page with result
- * @param type CreateTicketRequest $request
- * @return type response
- */
- public function post_newticket(CreateTicketRequest $request) {
- $email = $request->input('email');
- $fullname = $request->input('fullname');
- $notice = $request->input('notice');
- $helptopic = $request->input('helptopic');
- $dept = $request->input('dept');
- $sla = $request->input('sla');
- $duedate = $request->input('duedate');
- $assignto = $request->input('assignto');
- $subject = $request->input('subject');
- $body = $request->input('body');
- $priority = $request->input('priority');
- $phone = "";
- $system = "";
- //create user
- if ($this->create_user($email, $fullname, $subject, $body, $phone, $helptopic, $sla, $priority, $system)) {
- return Redirect('newticket')->with('success', 'success');
- } else {
- return Redirect('newticket')->with('fails', 'fails');
- }
- }
-
- /**
- * Shows the ticket thread details
- * @param type $id
- * @return type response
- */
- public function thread($id) {
- $tickets = Tickets::where('id', '=', $id)->first();
- $thread = Ticket_Thread::where('ticket_id', '=', $id)->first();
- return view('themes.default1.agent.ticket.timeline', compact('tickets'), compact('thread'));
- }
-
- /**
- * Replying a ticket
- * @param type Ticket_Thread $thread
- * @param type TicketRequest $request
- * @return type bool
- */
- public function reply(Ticket_Thread $thread, TicketRequest $request) {
- $thread->ticket_id = $request->input('ticket_ID');
- $thread->poster = 'support';
- $thread->body = $request->input('ReplyContent');
- $thread->save();
- $ticket_id = $request->input('ticket_ID');
- $tickets = Tickets::where('id', '=', $ticket_id)->first();
- $thread = Ticket_Thread::where('ticket_id', '=', $ticket_id)->first();
- return 1;
- }
-
- /**
- * Ticket edit and save ticket data
- * @param type $ticket_id
- * @param type Ticket_Thread $thread
- * @return type bool
- */
- public function ticket_edit_post($ticket_id, Ticket_Thread $thread) {
- $threads = $thread->where('ticket_id', '=', $ticket_id)->first();
- if (Input::get('subject') != null && Input::get('body') != null) {
- $threads->title = Input::get('subject');
- $threads->body = Input::get('body');
- if ($threads->save()) {
- return 1;
- } else {
- return 0;
- }
- }
- return 0;
- }
-
- /**
- * Print Ticket Details
- * @param type $id
- * @return type respponse
- */
- public function ticket_print($id) {
- $tickets = Tickets::where('id', '=', $id)->first();
- $thread = Ticket_Thread::where('ticket_id', '=', $id)->first();
- $html = view('themes.default1.agent.ticket.pdf', compact('id', 'tickets', 'thread'))->render();
- return PDF::load($html)->show();
- }
-
- /**
- * Generates Ticket Number
- * @param type $ticket_number
- * @return type integer
- */
- public function ticket_number($ticket_number) {
- $number = $ticket_number;
- $number = explode('-', $number);
- $number1 = $number[0];
- if ($number1 == 'ZZZZ') {
- $number1 = 'AAAA';
- }
- $number2 = $number[1];
- if ($number2 == '9999') {
- $number2 = '0000';
- }
- $number3 = $number[2];
- if ($number3 == '9999999') {
- $number3 = '0000000';
- }
- $number1++;
- $number2++;
- $number3++;
- $number2 = sprintf('%04s', $number2);
- $number3 = sprintf('%07s', $number3);
- $array = array($number1, $number2, $number3);
- $number = implode('-', $array);
- return $number;
- }
-
- /**
- * check email for dublicate entry
- * @param type $email
- * @return type bool
- */
- public function check_email($email) {
- $check = User::where('email', '=', $email)->first();
- if ($check == true) {
- return $check;
- } else {
- return false;
- }
- }
-
- /**
- * Create User while creating ticket
- * @param type $emailadd
- * @param type $username
- * @param type $subject
- * @param type $body
- * @param type $phone
- * @param type $helptopic
- * @param type $sla
- * @param type $priority
- * @param type $system
- * @return type bool
- */
- public function create_user($emailadd, $username, $subject, $body, $phone, $helptopic, $sla, $priority, $system) {
- // define global variables
- $email;
- $username;
- // check emails
- $checkemail = $this->check_email($emailadd);
-
- if ($checkemail == false) {
- // Generate password
- $password = $this->generateRandomString();
- // create user
- $user = new User;
- $user->user_name = $username;
- $user->email = $emailadd;
- $user->password = Hash::make($password);
- // mail user his/her password
- if ($user->save()) {
- $user_id = $user->id;
- if (Mail::send('emails.pass', ['password' => $password, 'name' => $username], function ($message) use ($emailadd, $username) {
- $message->to($emailadd, $username)->subject('password');
- })) {
- // need to do something here....
- }
- }
- } else {
- $username = $checkemail->username;
- $user_id = $checkemail->id;
- }
- $ticket_number = $this->check_ticket($user_id, $subject, $body, $helptopic, $sla, $priority);
- // send ticket create details to user
- if (Mail::send('emails.Ticket_Create', ['name' => $username, 'ticket_number' => $ticket_number], function ($message) use ($emailadd, $username, $ticket_number) {
- $message->to($emailadd, $username)->subject('[~' . $ticket_number . ']');
- })) {
- return true;
- }
- }
-
- /**
- * Default helptopic
- * @return type string
- */
- public function default_helptopic() {
- $helptopic = "1";
- return $helptopic;
- }
-
- /**
- * Default SLA plan
- * @return type string
- */
- public function default_sla() {
- $sla = "1";
- return $sla;
- }
-
- /**
- * Default Priority
- * @return type string
- */
- public function default_priority() {
- $priority = "1";
- return $prioirty;
- }
-
- /**
- * Check the response of the ticket
- * @param type $user_id
- * @param type $subject
- * @param type $body
- * @param type $helptopic
- * @param type $sla
- * @param type $priority
- * @return type string
- */
- public function check_ticket($user_id, $subject, $body, $helptopic, $sla, $priority) {
- $read_ticket_number = substr($subject, 0, 6);
- if ($read_ticket_number == 'Re: [~') {
- $separate = explode("]", $subject);
- $new_subject = substr($separate[0], 6, 20);
- $find_number = Tickets::where('ticket_number', '=', $new_subject)->first();
- $thread_body = explode("---Reply above this line---", $body);
- $body = $thread_body[0];
- if (count($find_number) > 0) {
- $id = $find_number->id;
- $ticket_number = $find_number->ticket_number;
- if (isset($id)) {
- if ($this->ticket_thread($subject, $body, $id, $user_id)) {
- return $ticket_number;
- }
- }
- } else {
- $ticket_number = $this->create_ticket($user_id, $subject, $body, $helptopic, $sla, $priority);
- return $ticket_number;
- }
- } else {
- $ticket_number = $this->create_ticket($user_id, $subject, $body, $helptopic, $sla, $priority);
- return $ticket_number;
- }
- }
-
- /**
- * Create Ticket
- * @param type $user_id
- * @param type $subject
- * @param type $body
- * @param type $helptopic
- * @param type $sla
- * @param type $priority
- * @return type string
- */
- public function create_ticket($user_id, $subject, $body, $helptopic, $sla, $priority) {
- $max_number = Tickets::whereRaw('id = (select max(`id`) from tickets)')->get();
- foreach ($max_number as $number) {
- $ticket_number = $number->ticket_number;
- }
- $ticket = new Tickets;
- $ticket->ticket_number = $this->ticket_number($ticket_number);
- $ticket->user_id = $user_id;
- $ticket->help_topic_id = $helptopic;
- $ticket->sla = $sla;
- $ticket->status = '1';
- $ticket->priority_id = $priority;
- $ticket->save();
- $ticket_number = $ticket->ticket_number;
- $id = $ticket->id;
- if ($this->ticket_thread($subject, $body, $id, $user_id) == true) {
- return $ticket_number;
- }
- }
-
- /**
- * Generate Ticket Thread
- * @param type $subject
- * @param type $body
- * @param type $id
- * @param type $user_id
- * @return type
- */
- public function ticket_thread($subject, $body, $id, $user_id) {
- $thread = new Ticket_Thread;
- $thread->user_id = $user_id;
- $thread->ticket_id = $id;
- $thread->poster = 'client';
- $thread->title = $subject;
- $thread->body = $body;
- if ($thread->save()) {
- return true;
- }
- }
-
- /**
- * Generate a random string for password
- * @param type $length
- * @return type string
- */
- public function generateRandomString($length = 10) {
- $characters = '0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ';
- $charactersLength = strlen($characters);
- $randomString = '';
- for ($i = 0; $i < $length; $i++) {
- $randomString .= $characters[rand(0, $charactersLength - 1)];
- }
- return $randomString;
- }
-
- /**
- * function to Ticket Close
- * @param type $id
- * @param type Tickets $ticket
- * @return type string
- */
- public function close($id, Tickets $ticket) {
- $ticket_status = $ticket->where('id', '=', $id)->first();
- $ticket_status->status = 3;
- $ticket_status->save();
- return "your ticket" . $ticket_status->ticket_number . " has been closed";
- }
-
- /**
- * function to Ticket resolved
- * @param type $id
- * @param type Tickets $ticket
- * @return type string
- */
- public function resolve($id, Tickets $ticket) {
- $ticket_status = $ticket->where('id', '=', $id)->first();
- $ticket_status->status = 2;
- $ticket_status->save();
- return "your ticket" . $ticket_status->ticket_number . " has been resolved";
- }
-
- /**
- * function to Open Ticket
- * @param type $id
- * @param type Tickets $ticket
- * @return type
- */
- public function open($id, Tickets $ticket) {
- $ticket_status = $ticket->where('id', '=', $id)->first();
- $ticket_status->status = 1;
- $ticket_status->save();
- return "your ticket" . $ticket_status->ticket_number . " has been opened";
- }
-
- /**
- * Function to delete ticket
- * @param type $id
- * @param type Tickets $ticket
- * @return type string
- */
- public function delete($id, Tickets $ticket) {
- $ticket_delete = $ticket->where('id', '=', $id)->first();
- $ticket_delete->is_deleted = 0;
- $ticket_delete->status = 5;
- $ticket_delete->save();
- return "your ticket" . $ticket_delete->ticket_number . " has been delete";
- }
-
- /**
- * Function to ban an email
- * @param type $id
- * @param type Tickets $ticket
- * @return type string
- */
- public function ban($id, Tickets $ticket) {
- $ticket_ban = $ticket->where('id', '=', $id)->first();
- $ban_email = $ticket_ban->user_id;
- $user = User::where('id', '=', $ban_email)->first();
- $user->is_ban = 1;
- $user->save();
- $Email = $user->email;
- $ban = Banlist::where('email_address', '=', $Email)->first();
- if ($ban == null) {
- $banlist = new Banlist;
- $banlist->ban_status = 1;
- $banlist->email_address = $user->email;
- $banlist->save();
- }
- return "the user has been banned";
- }
-
- /**
- * function to assign ticket
- * @param type $id
- * @return type bool
- */
- public function assign($id) {
- $UserEmail = Input::get('user');
- // $UserEmail = 'sujitprasad12@yahoo.in';
- $user = User::where('email', '=', $UserEmail)->first();
- $user_id = $user->id;
- $ticket = Tickets::where('id', '=', $id)->first();
- $ticket->assigned_to = $user_id;
- $ticket->save();
- return 1;
- }
-
- /**
- * Function to post internal note
- * @param type $id
- * @return type bool
- */
- public function InternalNote($id) {
- $InternalContent = Input::get('InternalContent');
- $thread = Ticket_Thread::where('ticket_id', '=', $id)->first();
- $NewThread = new Ticket_Thread;
- $NewThread->ticket_id = $thread->ticket_id;
- $NewThread->user_id = Auth::user()->id;
- $NewThread->thread_type = 'M';
- $NewThread->poster = Auth::user()->role;
- $NewThread->title = $thread->title;
- $NewThread->body = $InternalContent;
- $NewThread->save();
- return 1;
- }
-
- /**
- * Function to surrender a ticket
- * @param type $id
- * @return type bool
- */
- public function surrender($id) {
- $ticket = Tickets::where('id', '=', $id)->first();
- $ticket->assigned_to = 0;
- $ticket->save();
- return 1;
- }
-
- /**
- * function to search
- * @return type
- */
- // public function search() {
- // $product = Input::get('type');
- // $word = Input::get('name_startsWith');
-
- // if ($product == 'product') {
- // $starts_with = strtoupper($word);
- // $rows = DB::table('users')->select('user_name')->where('name', 'LIKE', $starts_with . '%')->get();
- // $data = array();
- // foreach ($rows as $row) {
- // array_push($data, $row->name);
- // }
- // print_r(json_encode($data));
- // }
-
- // if ($product == 'product_table') {
- // $row_num = Input::get('row_num');
- // $starts_with = strtoupper($word);
- // $rows = DB::table('product')->select('name', 'description', 'cost_price')->where('name', 'LIKE', $starts_with . '%')->get();
- // $data = array();
- // foreach ($rows as $row) {
- // $name = $row->name . '|' . $row->description . '|' . $row->cost_price . '|' . $row_num;
- // array_push($data, $name);
- // }
- // print_r(json_encode($data));
- // }
- // }
-
- /**
- * shows trashed tickets
- * @return type response
- */
- public function trash() {
- return view('themes.default1.agent.ticket.trash');
- }
-
- /**
- * shows unassigned tickets
- * @return type
- */
- public function unassigned() {
- return view('themes.default1.agent.ticket.unassigned');
- }
-
- /**
- * shows tickets assigned to Auth::user()
- * @return type
- */
- public function myticket() {
- return view('themes.default1.agent.ticket.myticket');
- }
-
-}
diff --git a/code/app/Http/Controllers/Guest/FormController.php b/code/app/Http/Controllers/Guest/FormController.php
deleted file mode 100644
index 17ca30426..000000000
--- a/code/app/Http/Controllers/Guest/FormController.php
+++ /dev/null
@@ -1,102 +0,0 @@
-
- */
-class FormController extends Controller {
-
- /**
- * This Function to get the form for the ticket
- * @param type Form_name $name
- * @param type Form_details $details
- * @param type Help_topic $topics
- * @return type Response
- */
- public function getForm(Form_name $name, Form_details $details, Help_topic $topics) {
- // name of the form where status==1
- $name = $name->where('status', 1)->get();
- //get label and the type from form_detail table where form_name_id of form_detail
- // equal to form_name table's id
- $ids = $name->where('id', 2);
- foreach ($ids as $i) {
- $id = $i->id;
- }
- //get form_name_id from form_detail and save to detail_form_name_id
- $detail_form_name_id = $details->where('form_name_id', $id)->get();
- $count = count($detail_form_name_id);
- // foreach($detail_form_name_id as $details)
- // {
- // echo $details->label;
- // }
- return view('themes.default1.client.guest-user.form', compact('name', 'detail_form_name_id', 'topics'));
- }
-
- /**
- * This Function to post the form for the ticket
- * @param type Form_name $name
- * @param type Form_details $details
- * @return type string
- */
- public function postForm(Form_name $name, Form_details $details) {
- $name = $name->where('status', 1)->get();
- $ids = $name->where('id', 2);
- foreach ($ids as $i) {
- $id = $i->id;
- //echo $id;
- }
- $field = $details->where('form_name_id', $id)->get();
- $var = " ";
- foreach ($field as $key) {
- $type = $key->type;
- $label = $key->label;
- $var .= "," . $type . "-" . $label;
- }
- return $var;
- // foreach($outs as $out)
- // {
- // return $out;
- // }
- // $var=" ";
- // foreach ($field as $key) {
- // $field=$key->field_name;
- // $id=$key->form_id;
- // $var.=",".$field;
- // }
- // return $var;
- // // $var=$field.$id;
- // // return
- // // return Response::json(array(
- // // 'field' => $field,
- // // 'id' => $id
- // // ));
- }
-
- /**
- * Posted form
- * @param type Request $request
- * @param type User $user
- */
- public function postedForm(Request $request, User $user) {
- $user->name = $request->input('Name');
- $user->email = $request->input('Email');
- $user->save();
- }
-}
diff --git a/code/app/Http/Controllers/Installer/InstallController.php b/code/app/Http/Controllers/Installer/InstallController.php
deleted file mode 100644
index 9991e309d..000000000
--- a/code/app/Http/Controllers/Installer/InstallController.php
+++ /dev/null
@@ -1,392 +0,0 @@
-
-// *
-// */
-class InstallController extends Controller {
-
-// /**
- // * Get Licence (step 1)
- // *
- // * validating licence agreement
- // */
- // public function licence(){
- // if(Config::get('database.install')=='%0%')
- // {
- // return View::make('themes/ep-install/default1/display/view1');
- // }
- // else{
- // return Redirect::route('account-sign-In');
- // }
- // }
-
-// /**
- // * Post Licencecheck
- // *
- // * Validating licence agreement
- // */
- // public function licencecheck() {
- // $accept = (Input::has('accept1')) ? true : false;
- // if ($accept == 'accept') {
- // Session::put('step1','step1');
- // return Redirect::route('prerequisites');
- // } else {
- // return Redirect::route('licence')->with('fails', 'Failed! first accept the licence agreeement');
- // }
- // }
-
-// /**
- // * Get prerequisites (step 2)
- // *
- // * Checking the extensions enabled required for installing the e-paper pdf
- // * without which the project cannot be executed properly
- // *
- // */
- // public function prerequisites() {
- // if(Config::get('database.install')=='%0%')
- // {
- // if(Session::get('step1')=='step1'){
- // return View::make('themes/ep-install/default1/display/view2');
- // } else {
- // return Redirect::route('licence');
- // }
- // }
- // else
- // {
- // return Redirect::route('account-sign-In');
- // }
- // }
-
-// /**
- // * Post Prerequisitescheck
- // *
- // * checking prerequisites
- // */
- // public function prerequisitescheck() {
- // Session::put('step2','step2');
- // return Redirect::route('localization');
- // }
-
-// /**
- // * Get Localization (step 3)
- // *
- // * Requesting user recomended settings for installation
- // */
- // public function localization() {
- // if(Config::get('database.install')=='%0%')
- // {
- // if(Session::get('step2')=='step2'){
- // return View::make('themes/ep-install/default1/display/view3');
- // } else {
- // return Redirect::route('prerequisites');
- // }
- // }
- // else{
- // return Redirect::route('account-sign-In');
- // }
- // }
-
-// /**
- // * Post localizationcheck
- // *
- // * checking prerequisites
- // */
- // public function localizationcheck() {
-
-// Session::put('step3','step3');
-
-// Session::put('language', Input::get('language'));
- // Session::put('timezone', Input::get('timezone'));
- // Session::put('date', Input::get('date'));
- // Session::put('datetime', Input::get('datetime'));
-
-// return Redirect::route('configuration');
- // }
-
-// /**
- // * Get Configuration (step 4)
- // *
- // * checking prerequisites
- // */
- // public function configuration() {
- // if(Config::get('database.install')=='%0%')
- // {
- // if(Session::get('step3')=='step3'){
- // return View::make('themes/ep-install/default1/display/view4');
- // } else {
- // return Redirect::route('localization');
- // }
- // }
- // else{
- // return Redirect::route('account-sign-In');
- // }
-
-// }
-
-// /**
- // * Post configurationcheck
- // *
- // * checking prerequisites
- // */
- // public function configurationcheck() {
-
-// Session::put('step4','step4');
-
-// Session::put('default', Input::get('default'));
- // Session::put('host', Input::get('host'));
- // Session::put('databasename', Input::get('databasename'));
- // Session::put('username', Input::get('username'));
- // Session::put('password', Input::get('password'));
-
-// return Redirect::route('database');
- // }
-
-// /**
- // * Get database
- // *
- // * checking prerequisites
- // */
- // public function database() {
- // if(Config::get('database.install')=='%0%')
- // {
- // if(Session::get('step4')=='step4'){
- // return View::make('themes/ep-install/default1/display/view5');
- // } else {
- // return Redirect::route('configuration');
- // }
- // }
- // else{
- // return Redirect::route('account-sign-In');
- // }
-
-// }
-
-// /**
- // * Get account
- // *
- // * checking prerequisites
- // */
- // public function account() {
- // if(Config::get('database.install')=='%0%')
- // {
- // if(Session::get('step4')=='step4'){
- // return View::make('themes/ep-install/default1/display/view6');
- // } else {
- // return Redirect::route('configuration');
- // }
- // }
- // else{
- // return Redirect::route('account-sign-In');
- // }
-
-// }
-
-// /**
- // * Post accountcheck
- // *
- // * checking prerequisites
- // */
- // public function accountcheck() {
- // // validation check
- // $validator = Validator::make(Input::all(), array(
- // 'firstname' => 'required|max:20',
- // 'Lastname' => 'required|max:20',
- // 'email' => 'required|max:50|email',
- // 'username' => 'required|max:50|min:3',
- // 'password' => 'required|min:6',
- // 'confirmpassword' => 'required|same:password'
- // ));
- // if ($validator->fails()) {
- // return Redirect::route('account')
- // ->withErrors($validator);
- // } else {
-
-// // config/database.php management
- // $default = Input::get('default');
- // $host = Input::get('host');
- // $database = Input::get('databasename');
- // $dbusername = Input::get('dbusername');
- // $dbpassword = Input::get('dbpassword');
-
-// // set default value
- // $path0 = app_path('config/database.php');
- // $content0 = File::get($path0);
- // $content0 = str_replace('%default%', $default, $content0);
- // File::put($path0, $content0);
-
-// // set host,databasename,username,password
- // if($default=='mysql')
- // {
- // $path = app_path('config/database.php');
- // $content = File::get($path);
- // $content = str_replace('%host%', $host, $content);
- // File::put($path, $content);
-
-// $path1 = app_path('config/database.php');
- // $content1 = File::get($path1);
- // $content1 = str_replace('%database%', $database, $content1);
- // File::put($path1, $content1);
-
-// $path2 = app_path('config/database.php');
- // $content2 = File::get($path2);
- // $content2 = str_replace('%username%', $dbusername, $content2);
- // File::put($path2, $content2);
-
-// $path3 = app_path('config/database.php');
- // $content3 = File::get($path3);
- // $content3 = str_replace('%password%', $dbpassword, $content3);
- // File::put($path3, $content3);
- // }
- // elseif($default=='pgsql')
- // {
- // $path = app_path('config/database.php');
- // $content = File::get($path);
- // $content = str_replace('%host1%', $host, $content);
- // File::put($path, $content);
-
-// $path1 = app_path('config/database.php');
- // $content1 = File::get($path1);
- // $content1 = str_replace('%database1%', $database, $content1);
- // File::put($path1, $content1);
-
-// $path2 = app_path('config/database.php');
- // $content2 = File::get($path2);
- // $content2 = str_replace('%username1%', $username, $content2);
- // File::put($path2, $content2);
-
-// $path3 = app_path('config/database.php');
- // $content3 = File::get($path3);
- // $content3 = str_replace('%password1%', $password, $content3);
- // File::put($path3, $content3);
- // }
- // elseif($default=='sqlsrv')
- // {
- // $path = app_path('config/database.php');
- // $content = File::get($path);
- // $content = str_replace('%host2%', $host, $content);
- // File::put($path, $content);
-
-// $path1 = app_path('config/database.php');
- // $content1 = File::get($path1);
- // $content1 = str_replace('%database2%', $database, $content1);
- // File::put($path1, $content1);
-
-// $path2 = app_path('config/database.php');
- // $content2 = File::get($path2);
- // $content2 = str_replace('%username2%', $username, $content2);
- // File::put($path2, $content2);
-
-// $path3 = app_path('config/database.php');
- // $content3 = File::get($path3);
- // $content3 = str_replace('%password2%', $password, $content3);
- // File::put($path3, $content3);
- // }
-
-// // migrate database
- // Artisan::call('migrate', array('--force' => true));
- // Artisan::call('db:seed', array('--force' => true));
-
-// // create user
- // $firstname = Input::get('firstname');
- // $lastname = Input::get('lastname');
- // $email = Input::get('email');
- // $username = Input::get('username');
- // $password = Input::get('password');
-
-// $language = Input::get('language');
- // $timezone = Input::get('timezone');
- // $date = Input::get('date');
- // $datetime = Input::get('datetime');
-
-// $user = User::create(array(
- // 'firstname' => $firstname,
- // 'lastname' => $lastname,
- // 'email' => $email,
- // 'username' => $username,
- // 'password' => Hash::make($password),
- // 'authority' => 'admin',
- // 'active' => 1
- // ));
-
-// // set option values
- // $dateformat = Option::where('option_name','=','date_format')->first();
- // $dateformat->option_value = $date;
- // $dateformat->save();
-
-// $datetimeformat = Option::where('option_name','=','date_time_format')->first();
- // $datetimeformat->option_value = $datetime;
- // $datetimeformat->save();
-
-// $timezonestring = Option::where('option_name','=','timezone_string')->first();
- // $timezonestring->option_value = $timezone;
- // $timezonestring->save();
-
-// $language1 = Option::where('option_name','=','language')->first();
- // $language1->option_value = $language;
- // $language1->save();
-
-// if ($user) {
-
-// Session::put('step6','step6');
-
-// return Redirect::route('final');
- // }
- // }
- // }
-
-// /**
- // * Get finalize
- // *
- // * checking prerequisites
- // */
- // public function finalize() {
- // if(Session::get('step6')=='step6'){
-
-// $var = "http://".$_SERVER['HTTP_HOST']."/epeper-pdf";
-
-// $siteurl = Option::where('option_name','=','siteurl')->first();
- // $siteurl->option_value = $var ;
- // $siteurl->save();
-
-// $value='1';
- // $install = app_path('config/database.php');
- // $datacontent = File::get($install);
- // $datacontent = str_replace('%0%', $value, $datacontent);
- // File::put($install, $datacontent);
- // try {
- // return View::make('themes/ep-install/default1/display/view7');
- // } catch (Exception $e) {
- // return Redirect::route('npl');
- // }
- // } else {
- // return Redirect::route('account');
- // }
- // }
-
-// /**
- // * Post finalcheck
- // *
- // * checking prerequisites
- // */
- // public function finalcheck() {
- // try
- // {
- // return Redirect::route('account-sign-In');
- // }
- // catch (Exception $e) {
- // return Redirect::Route('account-sign-out');
- // }
- // }
-
-}
diff --git a/code/app/Model/Ticket/Ticket_Priority.php b/code/app/Model/Ticket/Ticket_Priority.php
deleted file mode 100644
index a26ff37bd..000000000
--- a/code/app/Model/Ticket/Ticket_Priority.php
+++ /dev/null
@@ -1,11 +0,0 @@
-command('inspire')
->hourly();
+
+ $schedule->call('MailController@getdata')->everyFiveMinutes();
+
}
}
diff --git a/code/app/Events/Event.php b/code/code/app/Events/Event.php
similarity index 100%
rename from code/app/Events/Event.php
rename to code/code/app/Events/Event.php
diff --git a/code/code/app/Exceptions/Handler.php b/code/code/app/Exceptions/Handler.php
new file mode 100644
index 000000000..ba4f1dc9b
--- /dev/null
+++ b/code/code/app/Exceptions/Handler.php
@@ -0,0 +1,79 @@
+isHttpException($e)) {
+ return $this->renderHttpException($e);
+ }
+
+ if (config('app.debug')) {
+ return $this->renderExceptionWithWhoops($e);
+ }
+
+ return parent::render($request, $e);
+
+ }
+
+ /**
+ * Render an exception using Whoops.
+ *
+ * @param \Exception $e
+ * @return \Illuminate\Http\Response
+ */
+ protected function renderExceptionWithWhoops(Exception $e) {
+ $whoops = new \Whoops\Run;
+ $whoops->pushHandler(new \Whoops\Handler\PrettyPageHandler());
+
+ return new \Illuminate\Http\Response(
+ $whoops->handleException($e),
+ $e->getStatusCode(),
+ $e->getHeaders()
+ );
+ }
+
+}
diff --git a/code/app/Handlers/Commands/.gitkeep b/code/code/app/Handlers/Commands/.gitkeep
similarity index 100%
rename from code/app/Handlers/Commands/.gitkeep
rename to code/code/app/Handlers/Commands/.gitkeep
diff --git a/code/app/Handlers/Events/.gitkeep b/code/code/app/Handlers/Events/.gitkeep
similarity index 100%
rename from code/app/Handlers/Events/.gitkeep
rename to code/code/app/Handlers/Events/.gitkeep
diff --git a/code/app/Http/Controllers/Admin/AgentController.php b/code/code/app/Http/Controllers/Admin/AgentController.php
similarity index 88%
rename from code/app/Http/Controllers/Admin/AgentController.php
rename to code/code/app/Http/Controllers/Admin/AgentController.php
index d90c80a89..b79859a70 100644
--- a/code/app/Http/Controllers/Admin/AgentController.php
+++ b/code/code/app/Http/Controllers/Admin/AgentController.php
@@ -10,6 +10,10 @@ use App\Model\Agent\Teams;
use App\Model\Utility\Timezones;
use App\User;
use DB;
+use Mail;
+use App\Http\Controllers\SettingsController;
+use Hash;
+
/**
* AgentController
@@ -26,6 +30,7 @@ class AgentController extends Controller {
* @return Response
*/
public function __construct() {
+ SettingsController::smtp();
$this->middleware('auth');
$this->middleware('roles');
}
@@ -37,7 +42,7 @@ class AgentController extends Controller {
*/
public function index(User $user) {
try {
- $user = $user->where('role', 'agent')->get();
+ $user = $user->get();
return view('themes.default1.admin.agent.agents.index', compact('user'));
} catch (Exception $e) {
return view('404');
@@ -82,6 +87,8 @@ class AgentController extends Controller {
/* Insert to user table */
$user->role = 'agent';
$user->fill($request->input())->save();
+ $password = $this->generateRandomString();
+ $user->password = Hash::make($password);
// $teams = $request->input('assign_team');
// $imp =implode(',', $teams);
// $agent->assign_team = $imp;
@@ -92,6 +99,12 @@ class AgentController extends Controller {
}
/* Succes And Failure condition */
if ($user->save() == true) {
+ $name = $user->user_name;
+ $email = $user->email;
+ Mail::send('emails.pass', ['name' => $name, 'password' => $password], function ($message) use ($email, $name) {
+ $message->to($email, $name)->subject('[password]');
+ });
+
return redirect('agents')->with('success', 'Agent Created sucessfully');
} else {
return redirect('agents')->with('fails', 'Agent can not Create');
@@ -207,4 +220,20 @@ class AgentController extends Controller {
return redirect('agents')->with('fails', 'Agent can not Delete if the team Excist');
}
}
+
+
+ /**
+ * Generate a random string for password
+ * @param type $length
+ * @return type string
+ */
+ public function generateRandomString($length = 10) {
+ $characters = '0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ';
+ $charactersLength = strlen($characters);
+ $randomString = '';
+ for ($i = 0; $i < $length; $i++) {
+ $randomString .= $characters[rand(0, $charactersLength - 1)];
+ }
+ return $randomString;
+ }
}
diff --git a/code/app/Http/Controllers/Admin/BanlistController.php b/code/code/app/Http/Controllers/Admin/BanlistController.php
similarity index 100%
rename from code/app/Http/Controllers/Admin/BanlistController.php
rename to code/code/app/Http/Controllers/Admin/BanlistController.php
diff --git a/code/app/Http/Controllers/Admin/Controller.php b/code/code/app/Http/Controllers/Admin/Controller.php
similarity index 100%
rename from code/app/Http/Controllers/Admin/Controller.php
rename to code/code/app/Http/Controllers/Admin/Controller.php
diff --git a/code/app/Http/Controllers/Admin/DepartmentController.php b/code/code/app/Http/Controllers/Admin/DepartmentController.php
similarity index 100%
rename from code/app/Http/Controllers/Admin/DepartmentController.php
rename to code/code/app/Http/Controllers/Admin/DepartmentController.php
diff --git a/code/app/Http/Controllers/Admin/EmailsController.php b/code/code/app/Http/Controllers/Admin/EmailsController.php
similarity index 100%
rename from code/app/Http/Controllers/Admin/EmailsController.php
rename to code/code/app/Http/Controllers/Admin/EmailsController.php
diff --git a/code/app/Http/Controllers/Admin/FormController.php b/code/code/app/Http/Controllers/Admin/FormController.php
similarity index 100%
rename from code/app/Http/Controllers/Admin/FormController.php
rename to code/code/app/Http/Controllers/Admin/FormController.php
diff --git a/code/app/Http/Controllers/Admin/GroupController.php b/code/code/app/Http/Controllers/Admin/GroupController.php
similarity index 100%
rename from code/app/Http/Controllers/Admin/GroupController.php
rename to code/code/app/Http/Controllers/Admin/GroupController.php
diff --git a/code/app/Http/Controllers/Admin/HelptopicController.php b/code/code/app/Http/Controllers/Admin/HelptopicController.php
similarity index 95%
rename from code/app/Http/Controllers/Admin/HelptopicController.php
rename to code/code/app/Http/Controllers/Admin/HelptopicController.php
index e821d4e5b..57493bd46 100644
--- a/code/app/Http/Controllers/Admin/HelptopicController.php
+++ b/code/code/app/Http/Controllers/Admin/HelptopicController.php
@@ -9,7 +9,7 @@ use App\Model\Form\Form_name;
use App\Model\Manage\Help_topic;
use App\Model\Manage\Sla_plan;
use App\Model\Utility\Priority;
-
+use App\User;
/**
* HelptopicController
*
@@ -17,6 +17,7 @@ use App\Model\Utility\Priority;
* @subpackage Controller
* @author Ladybird
', $body);
+ // var_dump($body);
+ }
+ // dd($body);
+ $date = $mail->date;
+ $datetime = $overview[0]->date;
+ $date_time = explode(" ", $datetime);
+ $date = $date_time[1] . "-" . $date_time[2] . "-" . $date_time[3] . " " . $date_time[4];
+ $date = date('Y-m-d H:i:s', strtotime($date));
+ $subject = $mail->subject;
+ $fromname = $mail->fromName;
+ $fromaddress = $mail->fromAddress;
+ $source = "2";
+ $phone = "";
+ $priority = '1';
+
+ if ($this->TicketController->create_user($fromaddress, $fromname, $subject, $body, $phone, $helptopic, $sla, $priority, $source, $collaborator, $e_mail->department) == true) {
+ $thread_id = Ticket_Thread::whereRaw('id = (select max(`id`) from ticket_thread)')->first();
+ $thread_id = $thread_id->id;
+
+ foreach($mail->getAttachments() as $attachment)
+ {
+ $filepath = explode('../../../../../public/',$attachment->filePath);
+ $path = $_SERVER["DOCUMENT_ROOT"]."/support/code/public/".$filepath[1];
+ $filesize = filesize($path);
+ $file_data = file_get_contents($path);
+ $ext = pathinfo($attachment->filePath, PATHINFO_EXTENSION);
+ $imageid = $attachment->id;
+ $string = str_replace('-', '', $attachment->name);
+ $filename = explode('src', $attachment->filePath);
+ $filename = str_replace('\\', '', $filename);
+ $body = str_replace("cid:".$imageid, $filepath[1], $body);
+ $pos = strpos($body, $filepath[1]);
+
+
+ if($pos == false) {
+
+ if($settings_email->first()->attachment == 1) {
+ $upload = new Ticket_attachments;
+ $upload->file = $file_data;
+ $upload->thread_id = $thread_id;
+ $upload->name = $filepath[1];
+ $upload->type = $ext;
+ $upload->size = $filesize;
+ $upload->poster = "ATTACHMENT";
+ $upload->save();
+ }
+ } else {
+ $upload = new Ticket_attachments;
+ $upload->file = $file_data;
+ $upload->thread_id = $thread_id;
+ $upload->name = $filepath[1];
+ $upload->type = $ext;
+ $upload->size = $filesize;
+ $upload->poster = "INLINE";
+ $upload->save();
+ }
+ unlink($path);
+ }
+ $body = Encoding::fixUTF8($body);
+ $thread = Ticket_Thread::where('id','=',$thread_id)->first();
+ $thread->body = $body;
+ $thread->save();
+ }
+ }
+ }
+ }
+ }
+ }
+ }
+
+ /**
+ * Decode Imap text
+ * @param type $str
+ * @return type string
+ */
+ public function decode_imap_text($str) {
+ $result = '';
+ $decode_header = imap_mime_header_decode($str);
+ foreach ($decode_header AS $obj) {
+ $result .= htmlspecialchars(rtrim($obj->text, "\t"));
+ }
+ return $result;
+ }
+
+ /**
+ * fetch_attachments
+ * @return type
+ */
+ public function fetch_attachments(){
+ $uploads = Upload::all();
+ foreach($uploads as $attachment) {
+ $image = @imagecreatefromstring($attachment->file);
+ ob_start();
+ imagejpeg($image, null, 80);
+ $data = ob_get_contents();
+ ob_end_clean();
+ $var = '';
+ echo '
';
+ }
+ }
+
+ /**
+ * function to load data
+ * @param type $id
+ * @return type file
+ */
+ public function get_data($id){
+ $attachments = App\Model\Ticket\Ticket_attachments::where('id','=',$id)->get();
+ foreach($attachments as $attachment)
+ {
+ header('Content-type: application/'.$attachment->type.'');
+ header('Content-Disposition: inline; filename='.$attachment->name.'');
+ header('Content-Transfer-Encoding: binary');
+ echo $attachment->file;
+ }
+ }
+
+}
diff --git a/code/app/Http/Controllers/Agent/OrganizationController.php b/code/code/app/Http/Controllers/Agent/OrganizationController.php
similarity index 99%
rename from code/app/Http/Controllers/Agent/OrganizationController.php
rename to code/code/app/Http/Controllers/Agent/OrganizationController.php
index 3b37d61f6..39017c61f 100644
--- a/code/app/Http/Controllers/Agent/OrganizationController.php
+++ b/code/code/app/Http/Controllers/Agent/OrganizationController.php
@@ -34,7 +34,7 @@ class OrganizationController extends Controller {
public function __construct() {
$this->middleware('auth');
$this->middleware('role.agent');
- $this->middleware('roles');
+ // $this->middleware('roles');
}
/**
diff --git a/code/code/app/Http/Controllers/Agent/TicketController.php b/code/code/app/Http/Controllers/Agent/TicketController.php
new file mode 100644
index 000000000..34ccdd835
--- /dev/null
+++ b/code/code/app/Http/Controllers/Agent/TicketController.php
@@ -0,0 +1,1243 @@
+
+ */
+class TicketController extends Controller {
+
+ /**
+ * Create a new controller instance.
+ * @return type response
+ */
+ public function __construct() {
+ SettingsController::smtp();
+ $this->middleware('auth');
+ }
+
+ /**
+ * Show the ticket list page
+ * @return type response
+ */
+ // public function ticket_list() {
+ // return view('themes.default1.agent.ticket.ticket');
+ // }
+
+ /**
+ * Show the Open ticket list page
+ * @return type response
+ */
+ public function open_ticket_list() {
+ return view('themes.default1.agent.ticket.open');
+ }
+
+ /**
+ * Show the answered ticket list page
+ * @return type response
+ */
+ public function answered_ticket_list() {
+ return view('themes.default1.agent.ticket.answered');
+ }
+
+ /**
+ * Show the Myticket list page
+ * @return type response
+ */
+ public function myticket_ticket_list() {
+ return view('themes.default1.agent.ticket.myticket');
+ }
+
+ /**
+ * Show the Overdue ticket list page
+ * @return type response
+ */
+ public function overdue_ticket_list() {
+ return view('themes.default1.agent.ticket.overdue');
+ }
+
+ /**
+ * Show the Closed ticket list page
+ * @return type response
+ */
+ public function closed_ticket_list() {
+ return view('themes.default1.agent.ticket.closed');
+ }
+
+ /**
+ * Show the New ticket page
+ * @return type response
+ */
+ public function newticket() {
+ return view('themes.default1.agent.ticket.new');
+ }
+
+ /**
+ * Save the data of new ticket and show the New ticket page with result
+ * @param type CreateTicketRequest $request
+ * @return type response
+ */
+ public function post_newticket(CreateTicketRequest $request) {
+ $email = $request->input('email');
+ $fullname = $request->input('fullname');
+ // $notice = $request->input('notice');
+ $helptopic = $request->input('helptopic');
+ $dept = $request->input('dept');
+ $sla = $request->input('sla');
+ $duedate = $request->input('duedate');
+ $assignto = $request->input('assignto');
+ $subject = $request->input('subject');
+ $body = $request->input('body');
+ $priority = $request->input('priority');
+ $phone = "";
+ $source = "3";
+ $headers = null;
+ //create user
+ if ($this->create_user($email, $fullname, $subject, $body, $phone, $helptopic, $sla, $priority, $source, $headers, $dept)) {
+ return Redirect('newticket')->with('success', 'success');
+ } else {
+ return Redirect('newticket')->with('fails', 'fails');
+ }
+ }
+
+ /**
+ * Shows the ticket thread details
+ * @param type $id
+ * @return type response
+ */
+ public function thread($id) {
+ $lock = Tickets::where('id','=',$id)->first();
+ if($lock->lock_by == Auth::user()->id || $lock->lock_at < date('Y-m-d H:i:s', strtotime('-3 minutes', strtotime($lock->lock_at)))) {
+ if(Auth::user()->role == 'agent'){
+ $tickets = Tickets::where('id', '=', $id)->where('dept_id','=', Auth::user()->primary_dpt)->first();
+ } else {
+ $tickets = Tickets::where('id', '=', $id)->first();
+ }
+ $thread = Ticket_Thread::where('ticket_id', '=', $id)->first();
+ return view('themes.default1.agent.ticket.timeline', compact('tickets'), compact('thread'));
+ } else {
+ return Redirect()->back()->with('fails', 'This ticket has been locked by other agent');
+ }
+ }
+
+ /**
+ * Replying a ticket
+ * @param type Ticket_Thread $thread
+ * @param type TicketRequest $request
+ * @return type bool
+ */
+ // public function reply(Ticket_Thread $thread, TicketRequest $request) {
+ // // dd($request);
+ // $reply_content = $request->input('ReplyContent');
+ // $thread->ticket_id = $request->input('ticket_ID');
+ // $thread->poster = 'support';
+ // $thread->body = $request->input('ReplyContent');
+ // $thread->user_id = Auth::user()->id;
+ // $ticket_id = $request->input('ticket_ID');
+ // $tickets = Tickets::where('id', '=', $ticket_id)->first();
+
+ // $ticket_user = User::where('id','=',$tickets->user_id)->first();
+
+ // if($tickets->assigned_to == 0 )
+ // {
+ // $tickets->assigned_to = Auth::user()->id;
+ // $tickets->save();
+ // $thread2 = New Ticket_Thread;
+ // $thread2->ticket_id = $thread->ticket_id;
+ // $thread2->user_id = Auth::user()->id;
+ // $thread2->is_internal = 1;
+ // $thread2->body = "This Ticket have been assigned to " . Auth::user()->first_name . " " . Auth::user()->last_name;
+ // $thread2->save();
+ // }
+ // if($tickets->status > 1)
+ // {
+ // $tickets->last_message_at = date('Y-m-d H:i:s');
+ // $tickets->status = '1';
+ // $tickets->save();
+ // }
+
+ // $thread->save();
+
+ // $thread = Ticket_Thread::where('ticket_id', '=', $ticket_id)->first();
+ // $ticket_subject = $thread->title;
+ // $user_id = $tickets->user_id;
+ // $user = User::where('id','=',$user_id)->first();
+ // $email = $user->email;
+ // $user_name = $user->user_name;
+ // $ticket_number = $tickets->ticket_number;
+ // $company = $this->company();
+ // $username = $ticket_user->user_name;
+ // if(!empty(Auth::user()->agent_sign)) {
+ // $agentsign = Auth::user()->agent_sign;
+ // }
+ // else{
+ // $agentsign = Auth::user()->first_name . ' ' . Auth::user()->last_name;
+ // }
+ // // mail to main user
+ // Mail::send(array('html'=>'emails.ticket_re-reply'), ['content' => $reply_content, 'ticket_number' => $ticket_number, 'From' => $company, 'name'=>$username, 'Agent_Signature' => $agentsign], function ($message) use ($email, $user_name, $ticket_number, $ticket_subject) {
+ // $message->to($email, $user_name)->subject($ticket_subject . '[#' . $ticket_number . ']');
+ // });
+
+ // $collaborators = Ticket_Collaborator::where('ticket_id','=',$ticket_id)->get();
+ // foreach ($collaborators as $collaborator) {
+ // $system_emails = Emails::all();
+ // foreach($system_emails as $system_email)
+ // {
+ // //mail to collaborators
+ // $collab_user_id = $collaborator->user_id;
+ // $user_id_collab = User::where('id','=',$collab_user_id)->first();
+ // $collab_email = $user_id_collab->email;
+ // $collab_user_name = $user_id_collab->user_name;
+ // if($system_email->email_address != $collab_email)
+ // Mail::send('emails.ticket_re-reply', ['content' => $reply_content, 'ticket_number' => $ticket_number, 'From' => $company, 'name'=>$collab_user_name, 'Agent_Signature' => $agentsign], function ($message) use ($collab_email, $collab_user_name, $ticket_number, $ticket_subject) {
+ // $message->to($collab_email, $collab_user_name)->subject($ticket_subject . '[#' . $ticket_number . ']');
+ // });
+ // }
+ // }
+ // return 1;
+ // }
+
+ public function reply(Ticket_Thread $thread, TicketRequest $request, Ticket_attachments $ta ) {
+ $attachments = $request->file('attachment');
+ $check_attachment = null;
+ // dd($attachments);
+ // }
+ //return $attachments;
+ $reply_content = $request->input('ReplyContent');
+ $thread->ticket_id = $request->input('ticket_ID');
+ $thread->poster = 'support';
+ $thread->body = $request->input('ReplyContent');
+ $thread->user_id = Auth::user()->id;
+ $ticket_id = $request->input('ticket_ID');
+ //dd($ticket_id);
+ $tickets = Tickets::where('id', '=', $ticket_id)->first();
+
+ $ticket_user = User::where('id','=',$tickets->user_id)->first();
+
+ if($tickets->assigned_to == 0 )
+ {
+ $tickets->assigned_to = Auth::user()->id;
+ $tickets->save();
+ $thread2 = New Ticket_Thread;
+ $thread2->ticket_id = $thread->ticket_id;
+ $thread2->user_id = Auth::user()->id;
+ $thread2->is_internal = 1;
+ $thread2->body = "This Ticket have been assigned to " . Auth::user()->first_name . " " . Auth::user()->last_name;
+ $thread2->save();
+ }
+ if($tickets->status > 1)
+ {
+ $tickets->status = '1';
+ $tickets->save();
+ }
+ $thread->save();
+
+ //$atachPath = '';
+ foreach ($attachments as $attachment) {
+ if($attachment != null){
+ $name = $attachment->getClientOriginalName();
+ //dd(dirname($attachment));
+ $type = $attachment->getClientOriginalExtension();
+ $size = $attachment->getSize();
+ $data = file_get_contents($attachment->getRealPath());
+ // $tem_path = $attachment->getRealPath();
+ // $tem = basename($tem_path).PHP_EOL;
+ // //dd($tem);
+ $attachPath=$attachment->getRealPath();
+ //dd($attachPath);
+ $ta->create(['thread_id' => $thread->id,'name'=>$name,'size'=>$size,'type'=>$type,'file'=>$data,'poster'=>'ATTACHMENT']);
+
+ $check_attachment = 1;
+ } else {
+ $check_attachment = null;
+ }
+ }
+
+
+ //$thread = Ticket_Thread::where('ticket_id', '=', $ticket_id)->first();
+ $ticket_subject = $thread->title;
+ $user_id = $tickets->user_id;
+ $user = User::where('id','=',$user_id)->first();
+ $email = $user->email;
+ $user_name = $user->user_name;
+ $ticket_number = $tickets->ticket_number;
+ $company = $this->company();
+ $username = $ticket_user->user_name;
+ if(!empty(Auth::user()->agent_sign)) {
+ $agentsign = Auth::user()->agent_sign;
+ }
+ else{
+ $agentsign = Auth::user()->first_name . ' ' . Auth::user()->last_name;
+ }
+
+ // foreach($attachments as $attachment){
+ // $pathToFile = $attachment->getRealPath();
+ // $name = $attachment->name;
+ // $data = $attachment->file;
+ // $display = $attachment->file;
+ // $mime = $attachment->type;
+ // }
+ //dd(sizeOf($attachments));
+ //$size = sizeOf($attachments);
+ //dd($thread->id);\
+ // mail to main user
+ //$path = 'C:\wamp\tmp\php5D3A.tmp';
+ Mail::send(array('html'=>'emails.ticket_re-reply'), ['content' => $reply_content, 'ticket_number' => $ticket_number, 'From' => $company, 'name'=>$username, 'Agent_Signature' => $agentsign], function ($message) use ($email, $user_name, $ticket_number, $ticket_subject, $attachments, $check_attachment) {
+ $message->to($email, $user_name)->subject($ticket_subject . '[#' . $ticket_number . ']');
+ // if(isset($attachments)){
+ if($check_attachment == 1){
+ $size = sizeOf($attachments);
+ for($i=0;$i<$size;$i++){
+ $message->attach($attachments[$i]->getRealPath(), ['as' => $attachments[$i]->getClientOriginalName(), 'mime' => $attachments[$i]->getClientOriginalExtension()]);
+ }
+ }
+ },true);
+
+
+ $collaborators = Ticket_Collaborator::where('ticket_id','=',$ticket_id)->get();
+ foreach ($collaborators as $collaborator) {
+ //mail to collaborators
+ $collab_user_id = $collaborator->user_id;
+ $user_id_collab = User::where('id','=',$collab_user_id)->first();
+ $collab_email = $user_id_collab->email;
+ if($user_id_collab->role == "user") {
+ $collab_user_name = $user_id_collab->user_name;
+ } else {
+ $collab_user_name = $user_id_collab->first_name . " " . $user_id_collab->last_name;
+ }
+ Mail::send('emails.ticket_re-reply', ['content' => $reply_content, 'ticket_number' => $ticket_number, 'From' => $company, 'name'=>$collab_user_name, 'Agent_Signature' => $agentsign], function ($message) use ($collab_email, $collab_user_name, $ticket_number, $ticket_subject) {
+ $message->to($collab_email, $collab_user_name)->subject($ticket_subject . '[#' . $ticket_number . ']');
+ });
+ }
+ return 1;
+ }
+
+
+ /**
+ * Ticket edit and save ticket data
+ * @param type $ticket_id
+ * @param type Ticket_Thread $thread
+ * @return type bool
+ */
+ public function ticket_edit_post($ticket_id, Ticket_Thread $thread, Tickets $ticket) {
+
+ if (Input::get('subject') == null) {
+ return 1;
+ }
+ elseif (Input::get('sla_paln') == null) {
+ return 2;
+ }
+ elseif (Input::get('help_topic') == null) {
+ return 3;
+ }
+ elseif (Input::get('ticket_source') == null) {
+ return 4;
+ }
+ elseif (Input::get('ticket_priority') == null) {
+ return 5;
+ }
+ else {
+ $ticket = $ticket->where('id', '=', $ticket_id)->first();
+ $ticket->sla_id = Input::get("sla_paln");
+ $ticket->help_topic_id = Input::get("help_topic");
+ $ticket->source = Input::get("ticket_source");
+ $ticket->priority_id = Input::get("ticket_priority");
+ $ticket->save();
+
+ $threads = $thread->where('ticket_id', '=', $ticket_id)->first();
+ $threads->title = Input::get("subject");
+ $threads->save();
+ return 0;
+ }
+ }
+
+ /**
+ * Print Ticket Details
+ * @param type $id
+ * @return type respponse
+ */
+ public function ticket_print($id) {
+ $tickets = Tickets::where('id', '=', $id)->first();
+ $thread = Ticket_Thread::where('ticket_id', '=', $id)->first();
+ $html = view('themes.default1.agent.ticket.pdf', compact('id', 'tickets', 'thread'))->render();
+ return PDF::load($html)->show();
+ }
+
+ /**
+ * Generates Ticket Number
+ * @param type $ticket_number
+ * @return type integer
+ */
+ public function ticket_number($ticket_number) {
+ $number = $ticket_number;
+ $number = explode('-', $number);
+ $number1 = $number[0];
+ if ($number1 == 'ZZZZ') {
+ $number1 = 'AAAA';
+ }
+ $number2 = $number[1];
+ if ($number2 == '9999') {
+ $number2 = '0000';
+ }
+ $number3 = $number[2];
+ if ($number3 == '9999999') {
+ $number3 = '0000000';
+ }
+ $number1++;
+ $number2++;
+ $number3++;
+ $number2 = sprintf('%04s', $number2);
+ $number3 = sprintf('%07s', $number3);
+ $array = array($number1, $number2, $number3);
+ $number = implode('-', $array);
+ return $number;
+ }
+
+ /**
+ * check email for dublicate entry
+ * @param type $email
+ * @return type bool
+ */
+ public function check_email($email) {
+ $check = User::where('email', '=', $email)->first();
+ if ($check == true) {
+ return $check;
+ } else {
+ return false;
+ }
+ }
+
+ /**
+ * Create User while creating ticket
+ * @param type $emailadd
+ * @param type $username
+ * @param type $subject
+ * @param type $body
+ * @param type $phone
+ * @param type $helptopic
+ * @param type $sla
+ * @param type $priority
+ * @param type $system
+ * @return type bool
+ */
+ public function create_user($emailadd, $username, $subject, $body, $phone, $helptopic, $sla, $priority, $source, $headers, $dept) {
+ // define global variables
+ $email;
+ $username;
+ // check emails
+ $ticket_creator = $username;
+ $checkemail = $this->check_email($emailadd);
+ $company = $this->company();
+ if ($checkemail == false) {
+ // Generate password
+ $password = $this->generateRandomString();
+ // create user
+ $user = new User;
+ if($username == null)
+ {
+ $username = $emailadd;
+ }
+ $user->user_name = $username;
+ $user->email = $emailadd;
+ $user->password = Hash::make($password);
+ $user->role = "user";
+ $user->active = "1";
+ // mail user his/her password
+ if ($user->save()) {
+ $user_id = $user->id;
+ if (Mail::send('emails.pass', ['password' => $password, 'name' => $username, 'from'=>$company], function ($message) use ($emailadd, $username) {
+ $message->to($emailadd, $username)->subject('password');
+ })) {
+ // need to do something here....
+ }
+ }
+ } else {
+ $username = $checkemail->username;
+ $user_id = $checkemail->id;
+ }
+ $ticket_number = $this->check_ticket($user_id, $subject, $body, $helptopic, $sla, $priority, $source, $headers, $dept);
+ $ticket_number2 = $ticket_number[0];
+ $ticketdata = Tickets::where('ticket_number','=',$ticket_number2)->first();
+ $threaddata = Ticket_Thread::where('ticket_id','=',$ticketdata->id)->first();
+ // dd($threaddata);
+ $is_reply = $ticket_number[1];
+ $system = $this->system();
+ $updated_subject = $threaddata->title . '[#' . $ticket_number2 . ']';
+ if($ticket_number2)
+ {
+ // send ticket create details to user
+ if($is_reply == 0)
+ {
+ $mail = "Admin_mail";
+ Mail::send('emails.Ticket_Create', ['name' => $username, 'ticket_number' => $ticket_number2, 'from'=>$company, 'system' => $system], function ($message) use ($emailadd, $username, $ticket_number2, $updated_subject) {
+ $message->to($emailadd, $username)->subject($updated_subject);
+ });
+ }
+ else
+ {
+ $mail = "email_reply";
+ }
+
+ if(Alert::first()->ticket_status == 1 || Alert::first()->ticket_admin_email == 1) {
+ // send email to admin
+ $admins = User::where('role','=','admin')->get();
+ // $ticket_creator = $user->user_name;
+ foreach($admins as $admin)
+ {
+ $admin_email = $admin->email;
+ $admin_user = $admin->first_name;
+ Mail::send('emails.'.$mail, ['agent' => $admin_user, 'ticket_number' => $ticket_number2, 'from'=>$company, 'email' => $emailadd, 'name' => $ticket_creator, 'system' => $system], function ($message) use ($admin_email, $admin_user, $ticket_number2, $updated_subject) {
+ $message->to($admin_email, $admin_user)->subject($updated_subject);
+ });
+ }
+ }
+
+ if(Alert::first()->ticket_status == 1 || Alert::first()->ticket_department_member == 1) {
+ // send email to agents
+ $agents = User::where('role','=','agent')->get();
+ foreach($agents as $agent)
+ {
+ if($ticketdata->dept_id == $agent->primary_dpt)
+ {
+ $agent_email = $agent->email;
+ $agent_user = $agent->first_name;
+ Mail::send('emails.'.$mail, ['agent' => $agent_user, 'ticket_number' => $ticket_number2, 'from'=>$company, 'email' => $emailadd, 'name' => $ticket_creator, 'system' => $system], function ($message) use ($agent_email, $agent_user, $ticket_number2, $updated_subject) {
+ $message->to($agent_email, $agent_user)->subject($updated_subject);
+ });
+ }
+ }
+ }
+ return true;
+ }
+ }
+
+ /**
+ * Default helptopic
+ * @return type string
+ */
+ public function default_helptopic() {
+ $helptopic = "1";
+ return $helptopic;
+ }
+
+ /**
+ * Default SLA plan
+ * @return type string
+ */
+ public function default_sla() {
+ $sla = "1";
+ return $sla;
+ }
+
+ /**
+ * Default Priority
+ * @return type string
+ */
+ public function default_priority() {
+ $priority = "1";
+ return $prioirty;
+ }
+
+ /**
+ * Check the response of the ticket
+ * @param type $user_id
+ * @param type $subject
+ * @param type $body
+ * @param type $helptopic
+ * @param type $sla
+ * @param type $priority
+ * @return type string
+ */
+ public function check_ticket($user_id, $subject, $body, $helptopic, $sla, $priority, $source, $headers, $dept) {
+ // $read_ticket_number = substr($subject, 0, 6);
+ $read_ticket_number = explode('[#',$subject);
+ if(isset($read_ticket_number[1]))
+ {
+ // dd($read_ticket_number);
+ // if ($read_ticket_number == 'Re: [#' or $read_ticket_number == 'RE: [#') {
+ // dd($read_ticket_number);
+ $separate = explode("]", $read_ticket_number[1]);
+ $new_subject = substr($separate[0], 0, 20);
+ $find_number = Tickets::where('ticket_number', '=', $new_subject)->first();
+ $thread_body = explode("---Reply above this line---", $body);
+ $body = $thread_body[0];
+ if (count($find_number) > 0) {
+ $id = $find_number->id;
+ $ticket_number = $find_number->ticket_number;
+ if($find_number->status > 1)
+ {
+ $find_number->status = 1;
+ $find_number->save();
+
+ $ticket_status = Ticket_Status::where('id','=',1)->first();
+
+ $user_name = User::where('id','=', $user_id)->first();
+
+ if($user_name->role == 'user' )
+ {
+ $username = $user_name->user_name;
+ }
+ elseif($user_name->role == 'agent' or $user_name->role == 'admin')
+ {
+ $username = $user_name->first_name . " " . $user_name->last_name;
+ }
+
+ $ticket_threads = new Ticket_Thread;
+ $ticket_threads->ticket_id = $id;
+ $ticket_threads->user_id = $user_id;
+ $ticket_threads->is_internal = 1;
+ $ticket_threads->body = $ticket_status->message. " " . $username;
+ $ticket_threads->save();
+
+ }
+ if (isset($id)) {
+ if ($this->ticket_thread($subject, $body, $id, $user_id)) {
+ return array($ticket_number,1);
+ }
+ }
+ } else {
+ $ticket_number = $this->create_ticket($user_id, $subject, $body, $helptopic, $sla, $priority, $source, $headers, $dept);
+ return array($ticket_number,0);
+ }
+ } else {
+ $ticket_number = $this->create_ticket($user_id, $subject, $body, $helptopic, $sla, $priority, $source, $headers, $dept);
+ return array($ticket_number,0);
+ }
+ }
+
+ /**
+ * Create Ticket
+ * @param type $user_id
+ * @param type $subject
+ * @param type $body
+ * @param type $helptopic
+ * @param type $sla
+ * @param type $priority
+ * @return type string
+ */
+ public function create_ticket($user_id, $subject, $body, $helptopic, $sla, $priority, $source, $headers, $dept) {
+ $max_number = Tickets::whereRaw('id = (select max(`id`) from tickets)')->first();
+ if($max_number == null)
+ {
+ $ticket_number = "AAAA-9999-9999999";
+ }
+ else
+ {
+ foreach ($max_number as $number) {
+ $ticket_number = $max_number->ticket_number;
+ }
+ }
+ $ticket = new Tickets;
+ $ticket->ticket_number = $this->ticket_number($ticket_number);
+ $ticket->user_id = $user_id;
+ $ticket->dept_id = $dept;
+ $ticket->help_topic_id = $helptopic;
+ $ticket->sla = $sla;
+ $ticket->status = '1';
+ $ticket->priority_id = $priority;
+ $ticket->source = $source;
+ $ticket->save();
+ $ticket_number = $ticket->ticket_number;
+ $id = $ticket->id;
+ // store collaborators
+ $this->store_collaborators($headers, $id);
+
+ if ($this->ticket_thread($subject, $body, $id, $user_id) == true) {
+ return $ticket_number;
+ }
+ }
+
+ /**
+ * Generate Ticket Thread
+ * @param type $subject
+ * @param type $body
+ * @param type $id
+ * @param type $user_id
+ * @return type
+ */
+ public function ticket_thread($subject, $body, $id, $user_id) {
+ $thread = new Ticket_Thread;
+ $thread->user_id = $user_id;
+ $thread->ticket_id = $id;
+ $thread->poster = 'client';
+ $thread->title = $subject;
+ $thread->body = $body;
+ if ($thread->save()) {
+ return true;
+ }
+ }
+
+ /**
+ * Generate a random string for password
+ * @param type $length
+ * @return type string
+ */
+ public function generateRandomString($length = 10) {
+ $characters = '0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ';
+ $charactersLength = strlen($characters);
+ $randomString = '';
+ for ($i = 0; $i < $length; $i++) {
+ $randomString .= $characters[rand(0, $charactersLength - 1)];
+ }
+ return $randomString;
+ }
+
+ /**
+ * function to Ticket Close
+ * @param type $id
+ * @param type Tickets $ticket
+ * @return type string
+ */
+ public function close($id, Tickets $ticket) {
+ $ticket_status = $ticket->where('id', '=', $id)->first();
+ $ticket_status->status = 3;
+ $ticket_status->closed_at = date('Y-m-d H:i:s');
+ $ticket_status->save();
+ $ticket_status_message = Ticket_Status::where('id','=',$ticket_status->status)->first();
+ $thread = New Ticket_Thread;
+ $thread->ticket_id = $ticket_status->id;
+ $thread->user_id = Auth::user()->id;
+ $thread->is_internal = 1;
+ $thread->body = $ticket_status_message->message . " " . Auth::user()->first_name . " " . Auth::user()->last_name;
+ $thread->save();
+
+ $user_id = $ticket_status->user_id;
+ $user = User::where('id','=',$user_id)->first();
+ $email = $user->email;
+ $user_name = $user->user_name;
+ $ticket_number = $ticket_status->ticket_number;
+
+ $company = $this->company();
+
+ Mail::send('emails.close_ticket', ['ticket_number' => $ticket_number, 'from'=>$company], function ($message) use ($email, $user_name, $ticket_number) {
+ $message->to($email, $user_name)->subject('[#' . $ticket_number . ']');
+ });
+
+ return "your ticket" . $ticket_status->ticket_number . " has been closed";
+ }
+
+ /**
+ * function to Ticket resolved
+ * @param type $id
+ * @param type Tickets $ticket
+ * @return type string
+ */
+ public function resolve($id, Tickets $ticket) {
+ $ticket_status = $ticket->where('id', '=', $id)->first();
+ $ticket_status->status = 2;
+ $ticket_status->save();
+ $ticket_status_message = Ticket_Status::where('id','=',$ticket_status->status)->first();
+ $thread = New Ticket_Thread;
+ $thread->ticket_id = $ticket_status->id;
+ $thread->user_id = Auth::user()->id;
+ $thread->is_internal = 1;
+ $thread->body = $ticket_status_message->message . " " . Auth::user()->first_name . " " . Auth::user()->last_name;
+ $thread->save();
+ return "your ticket" . $ticket_status->ticket_number . " has been resolved";
+ }
+
+ /**
+ * function to Open Ticket
+ * @param type $id
+ * @param type Tickets $ticket
+ * @return type
+ */
+ public function open($id, Tickets $ticket) {
+ $ticket_status = $ticket->where('id', '=', $id)->first();
+ $ticket_status->status = 1;
+ $ticket_status->reopened_at = date('Y-m-d H:i:s');
+ $ticket_status->save();
+ $ticket_status_message = Ticket_Status::where('id','=',$ticket_status->status)->first();
+ $thread = New Ticket_Thread;
+ $thread->ticket_id = $ticket_status->id;
+ $thread->user_id = Auth::user()->id;
+ $thread->is_internal = 1;
+ $thread->body = $ticket_status_message->message . " " . Auth::user()->first_name . " " . Auth::user()->last_name;
+ $thread->save();
+ return "your ticket" . $ticket_status->ticket_number . " has been opened";
+ }
+
+ /**
+ * Function to delete ticket
+ * @param type $id
+ * @param type Tickets $ticket
+ * @return type string
+ */
+ public function delete($id, Tickets $ticket) {
+ $ticket_delete = $ticket->where('id', '=', $id)->first();
+ if($ticket_delete->status == 5)
+ {
+ $ticket_delete->delete();
+ $ticket_threads = Ticket_Thread::where('ticket_id','=',$id)->get();
+ foreach($ticket_threads as $ticket_thread)
+ {
+ $ticket_thread->delete();
+ }
+ $ticket_attachments = Ticket_attachments::where('ticket_id','=',$id)->get();
+ foreach ($ticket_attachments as $ticket_attachment)
+ {
+ $ticket_attachment->delete();
+ }
+ return "your ticket has been delete";
+ }
+ else
+ {
+ $ticket_delete->is_deleted = 0;
+ $ticket_delete->status = 5;
+ $ticket_delete->save();
+ $ticket_status_message = Ticket_Status::where('id','=',$ticket_delete->status)->first();
+ $thread = New Ticket_Thread;
+ $thread->ticket_id = $ticket_delete->id;
+ $thread->user_id = Auth::user()->id;
+ $thread->is_internal = 1;
+ $thread->body = $ticket_status_message->message . " " . Auth::user()->first_name . " " . Auth::user()->last_name;
+ $thread->save();
+ return "your ticket" . $ticket_delete->ticket_number . " has been delete";
+ }
+
+ }
+
+ /**
+ * Function to ban an email
+ * @param type $id
+ * @param type Tickets $ticket
+ * @return type string
+ */
+ public function ban($id, Tickets $ticket) {
+ $ticket_ban = $ticket->where('id', '=', $id)->first();
+ $ban_email = $ticket_ban->user_id;
+ $user = User::where('id', '=', $ban_email)->first();
+ $user->is_ban = 1;
+ $user->save();
+ $Email = $user->email;
+ $ban = Banlist::where('email_address', '=', $Email)->first();
+ if ($ban == null) {
+ $banlist = new Banlist;
+ $banlist->ban_status = 1;
+ $banlist->email_address = $user->email;
+ $banlist->save();
+ }
+ return "the user has been banned";
+ }
+
+ /**
+ * function to assign ticket
+ * @param type $id
+ * @return type bool
+ */
+ public function assign($id) {
+ $UserEmail = Input::get('user');
+ // $UserEmail = 'sujitprasad12@yahoo.in';
+ $user = User::where('email', '=', $UserEmail)->first();
+ $user_id = $user->id;
+ $ticket = Tickets::where('id', '=', $id)->first();
+ $ticket_number = $ticket->ticket_number;
+ $ticket->assigned_to = $user_id;
+ $ticket->save();
+ $thread = New Ticket_Thread;
+ $thread->ticket_id = $ticket->id;
+ $thread->user_id = Auth::user()->id;
+ $thread->is_internal = 1;
+ $thread->body = "This Ticket has been assigned to " . $user->first_name . " " . $user->last_name;
+ $thread->save();
+
+ $company = $this->company();
+ $system = $this->system();
+
+ $agent = $user->first_name;
+ $agent_email = $user->email;
+
+ $master = Auth::user()->first_name . " " . Auth::user()->last_name;
+ if(Alert::first()->internal_status == 1 || Alert::first()->internal_assigned_agent == 1) {
+ // ticket assigned send mail
+ Mail::send('emails.Ticket_assign', ['agent' => $agent, 'ticket_number' => $ticket_number, 'from'=>$company, 'master' => $master, 'system' => $system], function ($message) use ($agent_email, $agent, $ticket_number) {
+ $message->to($agent_email, $agent)->subject('[#' . $ticket_number . ']');
+ });
+ }
+
+ return 1;
+ }
+
+ /**
+ * Function to post internal note
+ * @param type $id
+ * @return type bool
+ */
+ public function InternalNote($id) {
+ $InternalContent = Input::get('InternalContent');
+ $thread = Ticket_Thread::where('ticket_id', '=', $id)->first();
+ $NewThread = new Ticket_Thread;
+ $NewThread->ticket_id = $thread->ticket_id;
+ $NewThread->user_id = Auth::user()->id;
+ // $NewThread->thread_type = 'M';
+ $NewThread->is_internal = 1;
+ $NewThread->poster = Auth::user()->role;
+ $NewThread->title = $thread->title;
+ $NewThread->body = $InternalContent;
+ $NewThread->save();
+ return 1;
+ }
+
+ /**
+ * Function to surrender a ticket
+ * @param type $id
+ * @return type bool
+ */
+ public function surrender($id) {
+ $ticket = Tickets::where('id', '=', $id)->first();
+
+ // if($ticket->assigned_to == Auth::user()->id)
+ // {
+ $InternalContent = Auth::user()->first_name." ".Auth::user()->last_name . " has Surrendered the assigned Ticket";
+ $thread = Ticket_Thread::where('ticket_id', '=', $id)->first();
+ $NewThread = new Ticket_Thread;
+ $NewThread->ticket_id = $thread->ticket_id;
+ $NewThread->user_id = Auth::user()->id;
+ $NewThread->is_internal = 1;
+ $NewThread->poster = Auth::user()->role;
+ $NewThread->title = $thread->title;
+ $NewThread->body = $InternalContent;
+ $NewThread->save();
+ // }
+
+ $ticket->assigned_to = 0;
+ $ticket->save();
+
+ return 1;
+ }
+
+ public function search($keyword) {
+ if(isset($keyword)) {
+ $data = array('ticket_number' => Tickets::search($keyword));
+
+ return $data;
+ } else {
+ return "no results";
+ }
+ }
+ public function stores($ticket_number)
+ {
+ $this->layout->header = $ticket_number;
+ $content = View::make('themes.default1.admin.tickets.ticketsearch', with(new Tickets()))
+ ->with('header', $this->layout->header)
+ ->with('ticket_number', \App\Model\Tickets::stores($ticket_number));
+
+ if (Request::header('X-PJAX')) {
+ return $content;
+ } else {
+ $this->layout->content = $content;
+ }
+ }
+
+
+ /**
+ * store_collaborators
+ * @param type $headers
+ * @return type
+ */
+ public function store_collaborators($headers, $id)
+ {
+ $company = $this->company();
+ if(isset($headers)) {
+ foreach ($headers as $email=>$name) {
+ $name = $name;
+ $email = $email;
+ if($this->check_email($email) == false) {
+ $create_user = new User;
+ $create_user->user_name = $name;
+ $create_user->email = $email;
+ $create_user->active = 1;
+ $create_user->role = "user";
+ $password = $this->generateRandomString();
+ $create_user->password = Hash::make($password);
+ $create_user->save();
+ $user_id = $create_user->id;
+ Mail::send('emails.pass', ['password' => $password, 'name' => $name, 'from'=>$company], function ($message) use ($email, $name) {
+ $message->to($email, $name)->subject('password');
+ });
+ }
+ else{
+ $user = $this->check_email($email);
+ $user_id = $user->id;
+ }
+ $collaborator_store = new Ticket_Collaborator;
+ $collaborator_store->isactive = 1;
+ $collaborator_store->ticket_id = $id;
+ $collaborator_store->user_id = $user_id;
+ $collaborator_store->role = "ccc";
+ $collaborator_store->save();
+ }
+ }
+ return true;
+ }
+
+ /**
+ * company
+ * @return type
+ */
+ public function company()
+ {
+ $company = Company::Where('id','=','1')->first();
+ if($company->company_name == null){
+ $company = "Support Center";
+ }else{
+ $company = $company->company_name;
+ }
+ return $company;
+ }
+
+ /**
+ * system
+ * @return type
+ */
+ public function system()
+ {
+ $system = System::Where('id','=','1')->first();
+ if($system->name == null){
+ $system = "Support Center";
+ }else{
+ $system = $system->name;
+ }
+ return $system;
+ }
+
+ /**
+ * function to search
+ * @return type
+ */
+ // public function search() {
+ // $product = Input::get('type');
+ // $word = Input::get('name_startsWith');
+
+ // if ($product == 'product') {
+ // $starts_with = strtoupper($word);
+ // $rows = DB::table('users')->select('user_name')->where('name', 'LIKE', $starts_with . '%')->get();
+ // $data = array();
+ // foreach ($rows as $row) {
+ // array_push($data, $row->name);
+ // }
+ // print_r(json_encode($data));
+ // }
+
+ // if ($product == 'product_table') {
+ // $row_num = Input::get('row_num');
+ // $starts_with = strtoupper($word);
+ // $rows = DB::table('product')->select('name', 'description', 'cost_price')->where('name', 'LIKE', $starts_with . '%')->get();
+ // $data = array();
+ // foreach ($rows as $row) {
+ // $name = $row->name . '|' . $row->description . '|' . $row->cost_price . '|' . $row_num;
+ // array_push($data, $name);
+ // }
+ // print_r(json_encode($data));
+ // }
+ // }
+
+ /**
+ * shows trashed tickets
+ * @return type response
+ */
+ public function trash() {
+ return view('themes.default1.agent.ticket.trash');
+ }
+
+ /**
+ * shows unassigned tickets
+ * @return type
+ */
+ public function unassigned() {
+ return view('themes.default1.agent.ticket.unassigned');
+ }
+
+ /**
+ * shows tickets assigned to Auth::user()
+ * @return type
+ */
+ public function myticket() {
+ return view('themes.default1.agent.ticket.myticket');
+ }
+
+
+ /**
+ * cleanMe
+ * @param type $input
+ * @return type
+ */
+ public function cleanMe($input) {
+ $input = mysqli_real_escape_string($input);
+ $input = htmlspecialchars($input, ENT_IGNORE, 'utf-8');
+ $input = strip_tags($input);
+ $input = stripslashes($input);
+ return $input;
+ }
+
+ /**
+ * autosearch
+ * @param type Image $image
+ * @return type json
+ */
+ public function autosearch($id,User $user)
+ {
+ $user = $user->lists('email');
+ echo json_encode($user);
+ }
+
+ /**
+ * autosearch2
+ * @param type Image $image
+ * @return type json
+ */
+ public function autosearch2(User $user)
+ {
+ $user = $user->lists('email');
+ echo json_encode($user);
+ }
+
+
+
+ /**
+ * autosearch
+ * @param type Image $image
+ * @return type json
+ */
+ public function usersearch()
+ {
+ $email = Input::get('search');
+ $ticket_id = Input::get('ticket_id');
+ $data = User::where('email','=',$email)->first();
+
+ $ticket_collaborator = Ticket_Collaborator::where('ticket_id','=',$ticket_id)->where('user_id','=',$data->id)->first();
+ if(!isset($ticket_collaborator))
+ {
+ $ticket_collaborator = new Ticket_Collaborator;
+ $ticket_collaborator->isactive = 1;
+ $ticket_collaborator->ticket_id = $ticket_id;
+ $ticket_collaborator->user_id = $data->id;
+ $ticket_collaborator->role = 'ccc';
+ $ticket_collaborator->save();
+ return 'Success!
'.$data->user_name.'
'.$data->user_name.'
This user already CollaboratedAlert!
'.$user->user_name.'
'.$data->user_name.'
";
+// echo "
";
+// });
+
+Route::get('503',function(){
+ return view('errors.503');
+});
+
+Route::get('404',function(){
+ return view('errors.404');
+});
diff --git a/code/code/app/Message.php b/code/code/app/Message.php
new file mode 100644
index 000000000..2a6cdb74e
--- /dev/null
+++ b/code/code/app/Message.php
@@ -0,0 +1,10 @@
+=5.3.3",
"symfony/console": "~2.1",
"symfony/filesystem": "~2.1",
@@ -131,7 +131,7 @@
"type": "library",
"extra": {
"branch-alias": {
- "dev-master": "1.3-dev"
+ "dev-master": "1.4-dev"
}
},
"autoload": {
@@ -144,13 +144,13 @@
"MIT"
],
"authors": [
- {
- "name": "Graham Campbell",
- "email": "graham@mineuk.com"
- },
{
"name": "Michael Dowling",
"email": "mtdowling@gmail.com"
+ },
+ {
+ "name": "Graham Campbell",
+ "email": "graham@cachethq.io"
}
],
"description": "Helps class loading performance by generating a single PHP file containing all of the autoloaded files for a specific use case",
@@ -159,20 +159,20 @@
"class",
"preload"
],
- "time": "2015-04-15 21:59:30"
+ "time": "2015-05-26 10:57:51"
},
{
"name": "danielstjules/stringy",
- "version": "1.9.0",
+ "version": "1.10.0",
"source": {
"type": "git",
"url": "https://github.com/danielstjules/Stringy.git",
- "reference": "3cf18e9e424a6dedc38b7eb7ef580edb0929461b"
+ "reference": "4749c205db47ee5b32e8d1adf6d9aff8db6caf3b"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/danielstjules/Stringy/zipball/3cf18e9e424a6dedc38b7eb7ef580edb0929461b",
- "reference": "3cf18e9e424a6dedc38b7eb7ef580edb0929461b",
+ "url": "https://api.github.com/repos/danielstjules/Stringy/zipball/4749c205db47ee5b32e8d1adf6d9aff8db6caf3b",
+ "reference": "4749c205db47ee5b32e8d1adf6d9aff8db6caf3b",
"shasum": ""
},
"require": {
@@ -215,7 +215,7 @@
"utility",
"utils"
],
- "time": "2015-02-10 06:19:18"
+ "time": "2015-07-23 00:54:12"
},
{
"name": "dnoegel/php-xdg-base-dir",
@@ -359,17 +359,75 @@
"time": "2014-03-11 01:59:52"
},
{
- "name": "giggsey/libphonenumber-for-php",
- "version": "7.0.5",
+ "name": "filp/whoops",
+ "version": "1.1.7",
"source": {
"type": "git",
- "url": "https://github.com/giggsey/libphonenumber-for-php.git",
- "reference": "7e49f5904a35cf7a5985de9df6397c296ea504f1"
+ "url": "https://github.com/filp/whoops.git",
+ "reference": "72538eeb70bbfb11964412a3d098d109efd012f7"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/giggsey/libphonenumber-for-php/zipball/7e49f5904a35cf7a5985de9df6397c296ea504f1",
- "reference": "7e49f5904a35cf7a5985de9df6397c296ea504f1",
+ "url": "https://api.github.com/repos/filp/whoops/zipball/72538eeb70bbfb11964412a3d098d109efd012f7",
+ "reference": "72538eeb70bbfb11964412a3d098d109efd012f7",
+ "shasum": ""
+ },
+ "require": {
+ "php": ">=5.3.0"
+ },
+ "require-dev": {
+ "mockery/mockery": "0.9.*"
+ },
+ "type": "library",
+ "extra": {
+ "branch-alias": {
+ "dev-master": "1.2-dev"
+ }
+ },
+ "autoload": {
+ "psr-0": {
+ "Whoops": "src/"
+ },
+ "classmap": [
+ "src/deprecated"
+ ]
+ },
+ "notification-url": "https://packagist.org/downloads/",
+ "license": [
+ "MIT"
+ ],
+ "authors": [
+ {
+ "name": "Filipe Dobreira",
+ "homepage": "https://github.com/filp",
+ "role": "Developer"
+ }
+ ],
+ "description": "php error handling for cool kids",
+ "homepage": "https://github.com/filp/whoops",
+ "keywords": [
+ "error",
+ "exception",
+ "handling",
+ "library",
+ "silex-provider",
+ "whoops",
+ "zf2"
+ ],
+ "time": "2015-06-29 05:42:04"
+ },
+ {
+ "name": "giggsey/libphonenumber-for-php",
+ "version": "7.0.9",
+ "source": {
+ "type": "git",
+ "url": "https://github.com/giggsey/libphonenumber-for-php.git",
+ "reference": "319fd6440e997f03658fc833a37d57c1a99f7e32"
+ },
+ "dist": {
+ "type": "zip",
+ "url": "https://api.github.com/repos/giggsey/libphonenumber-for-php/zipball/319fd6440e997f03658fc833a37d57c1a99f7e32",
+ "reference": "319fd6440e997f03658fc833a37d57c1a99f7e32",
"shasum": ""
},
"require": {
@@ -416,7 +474,7 @@
"phonenumber",
"validation"
],
- "time": "2015-04-28 19:50:26"
+ "time": "2015-08-04 09:42:04"
},
{
"name": "illuminate/html",
@@ -551,16 +609,16 @@
},
{
"name": "jakub-onderka/php-console-highlighter",
- "version": "v0.3.1",
+ "version": "v0.3.2",
"source": {
"type": "git",
"url": "https://github.com/JakubOnderka/PHP-Console-Highlighter.git",
- "reference": "05bce997da20acf873e6bf396276798f3cd2c76a"
+ "reference": "7daa75df45242c8d5b75a22c00a201e7954e4fb5"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/JakubOnderka/PHP-Console-Highlighter/zipball/05bce997da20acf873e6bf396276798f3cd2c76a",
- "reference": "05bce997da20acf873e6bf396276798f3cd2c76a",
+ "url": "https://api.github.com/repos/JakubOnderka/PHP-Console-Highlighter/zipball/7daa75df45242c8d5b75a22c00a201e7954e4fb5",
+ "reference": "7daa75df45242c8d5b75a22c00a201e7954e4fb5",
"shasum": ""
},
"require": {
@@ -570,6 +628,7 @@
"require-dev": {
"jakub-onderka/php-code-style": "~1.0",
"jakub-onderka/php-parallel-lint": "~0.5",
+ "jakub-onderka/php-var-dump-check": "~0.1",
"phpunit/phpunit": "~4.0",
"squizlabs/php_codesniffer": "~1.5"
},
@@ -590,7 +649,7 @@
"homepage": "http://www.acci.cz/"
}
],
- "time": "2014-07-14 20:59:35"
+ "time": "2015-04-20 18:58:01"
},
{
"name": "jeremeamia/SuperClosure",
@@ -652,16 +711,16 @@
},
{
"name": "laravel/framework",
- "version": "v5.0.28",
+ "version": "v5.0.33",
"source": {
"type": "git",
"url": "https://github.com/laravel/framework.git",
- "reference": "06a09429322cf53e5bd4587db1060f02a291562e"
+ "reference": "b11c8ab88245f920b30e5f30e16b141ac8d461d3"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/laravel/framework/zipball/06a09429322cf53e5bd4587db1060f02a291562e",
- "reference": "06a09429322cf53e5bd4587db1060f02a291562e",
+ "url": "https://api.github.com/repos/laravel/framework/zipball/b11c8ab88245f920b30e5f30e16b141ac8d461d3",
+ "reference": "b11c8ab88245f920b30e5f30e16b141ac8d461d3",
"shasum": ""
},
"require": {
@@ -774,20 +833,20 @@
"framework",
"laravel"
],
- "time": "2015-04-21 01:44:32"
+ "time": "2015-06-09 13:12:19"
},
{
"name": "league/flysystem",
- "version": "1.0.3",
+ "version": "1.0.11",
"source": {
"type": "git",
"url": "https://github.com/thephpleague/flysystem.git",
- "reference": "3c2400a99ccc3be6884d40361890010449c6b447"
+ "reference": "c16222fdc02467eaa12cb6d6d0e65527741f6040"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/thephpleague/flysystem/zipball/3c2400a99ccc3be6884d40361890010449c6b447",
- "reference": "3c2400a99ccc3be6884d40361890010449c6b447",
+ "url": "https://api.github.com/repos/thephpleague/flysystem/zipball/c16222fdc02467eaa12cb6d6d0e65527741f6040",
+ "reference": "c16222fdc02467eaa12cb6d6d0e65527741f6040",
"shasum": ""
},
"require": {
@@ -795,13 +854,10 @@
},
"require-dev": {
"ext-fileinfo": "*",
- "league/phpunit-coverage-listener": "~1.1",
"mockery/mockery": "~0.9",
- "phpspec/phpspec": "~2.0",
+ "phpspec/phpspec": "^2.2",
"phpspec/prophecy-phpunit": "~1.0",
- "phpunit/phpunit": "~4.1",
- "predis/predis": "~1.0",
- "tedivm/stash": "~0.12.0"
+ "phpunit/phpunit": "~4.1"
},
"suggest": {
"ext-fileinfo": "Required for MimeType",
@@ -815,8 +871,7 @@
"league/flysystem-rackspace": "Allows you to use Rackspace Cloud Files",
"league/flysystem-sftp": "Allows you to use SFTP server storage via phpseclib",
"league/flysystem-webdav": "Allows you to use WebDAV storage",
- "league/flysystem-ziparchive": "Allows you to use ZipArchive adapter",
- "predis/predis": "Allows you to use Predis for caching"
+ "league/flysystem-ziparchive": "Allows you to use ZipArchive adapter"
},
"type": "library",
"extra": {
@@ -839,10 +894,11 @@
"email": "info@frenky.net"
}
],
- "description": "Many filesystems, one API.",
+ "description": "Filesystem abstraction: Many filesystems, one API.",
"keywords": [
"Cloud Files",
"WebDAV",
+ "abstraction",
"aws",
"cloud",
"copy.com",
@@ -850,6 +906,7 @@
"file systems",
"files",
"filesystem",
+ "filesystems",
"ftp",
"rackspace",
"remote",
@@ -857,20 +914,20 @@
"sftp",
"storage"
],
- "time": "2015-03-29 14:01:43"
+ "time": "2015-07-28 20:41:58"
},
{
"name": "monolog/monolog",
- "version": "1.13.1",
+ "version": "1.15.0",
"source": {
"type": "git",
"url": "https://github.com/Seldaek/monolog.git",
- "reference": "c31a2c4e8db5da8b46c74cf275d7f109c0f249ac"
+ "reference": "dc5150cc608f2334c72c3b6a553ec9668a4156b0"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/Seldaek/monolog/zipball/c31a2c4e8db5da8b46c74cf275d7f109c0f249ac",
- "reference": "c31a2c4e8db5da8b46c74cf275d7f109c0f249ac",
+ "url": "https://api.github.com/repos/Seldaek/monolog/zipball/dc5150cc608f2334c72c3b6a553ec9668a4156b0",
+ "reference": "dc5150cc608f2334c72c3b6a553ec9668a4156b0",
"shasum": ""
},
"require": {
@@ -881,12 +938,14 @@
"psr/log-implementation": "1.0.0"
},
"require-dev": {
- "aws/aws-sdk-php": "~2.4, >2.4.8",
+ "aws/aws-sdk-php": "^2.4.9",
"doctrine/couchdb": "~1.0@dev",
"graylog2/gelf-php": "~1.0",
- "phpunit/phpunit": "~4.0",
- "raven/raven": "~0.5",
- "ruflin/elastica": "0.90.*",
+ "php-console/php-console": "^3.1.3",
+ "phpunit/phpunit": "~4.5",
+ "phpunit/phpunit-mock-objects": "2.3.0",
+ "raven/raven": "~0.8",
+ "ruflin/elastica": ">=0.90 <3.0",
"swiftmailer/swiftmailer": "~5.3",
"videlalvaro/php-amqplib": "~2.4"
},
@@ -896,6 +955,7 @@
"ext-amqp": "Allow sending log messages to an AMQP server (1.0+ required)",
"ext-mongo": "Allow sending log messages to a MongoDB server",
"graylog2/gelf-php": "Allow sending log messages to a GrayLog2 server",
+ "php-console/php-console": "Allow sending log messages to Google Chrome",
"raven/raven": "Allow sending log messages to a Sentry server",
"rollbar/rollbar": "Allow sending log messages to Rollbar",
"ruflin/elastica": "Allow sending log messages to an Elastic Search server",
@@ -904,7 +964,7 @@
"type": "library",
"extra": {
"branch-alias": {
- "dev-master": "1.13.x-dev"
+ "dev-master": "1.15.x-dev"
}
},
"autoload": {
@@ -930,7 +990,7 @@
"logging",
"psr-3"
],
- "time": "2015-03-09 09:58:04"
+ "time": "2015-07-12 13:54:09"
},
{
"name": "mtdowling/cron-expression",
@@ -977,22 +1037,56 @@
"time": "2015-01-11 23:07:46"
},
{
- "name": "nesbot/carbon",
- "version": "1.18.0",
+ "name": "neitanod/forceutf8",
+ "version": "dev-master",
"source": {
"type": "git",
- "url": "https://github.com/briannesbitt/Carbon.git",
- "reference": "99e2f69f7bdc2cc4334b2d00f1e0ba450623ea36"
+ "url": "https://github.com/neitanod/forceutf8.git",
+ "reference": "2c1b21e00ed16b2b083ae4e27901cb5f2856db90"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/briannesbitt/Carbon/zipball/99e2f69f7bdc2cc4334b2d00f1e0ba450623ea36",
- "reference": "99e2f69f7bdc2cc4334b2d00f1e0ba450623ea36",
+ "url": "https://api.github.com/repos/neitanod/forceutf8/zipball/2c1b21e00ed16b2b083ae4e27901cb5f2856db90",
+ "reference": "2c1b21e00ed16b2b083ae4e27901cb5f2856db90",
+ "shasum": ""
+ },
+ "require": {
+ "php": ">=5.3.0"
+ },
+ "type": "library",
+ "autoload": {
+ "psr-0": {
+ "ForceUTF8\\": "src/"
+ }
+ },
+ "notification-url": "https://packagist.org/downloads/",
+ "authors": [
+ {
+ "name": "Sebastián Grignoli",
+ "email": "grignoli@gmail.com"
+ }
+ ],
+ "description": "PHP Class Encoding featuring popular Encoding::toUTF8() function --formerly known as forceUTF8()-- that fixes mixed encoded strings.",
+ "homepage": "https://github.com/neitanod/forceutf8",
+ "time": "2015-05-07 16:37:23"
+ },
+ {
+ "name": "nesbot/carbon",
+ "version": "1.20.0",
+ "source": {
+ "type": "git",
+ "url": "https://github.com/briannesbitt/Carbon.git",
+ "reference": "bfd3eaba109c9a2405c92174c8e17f20c2b9caf3"
+ },
+ "dist": {
+ "type": "zip",
+ "url": "https://api.github.com/repos/briannesbitt/Carbon/zipball/bfd3eaba109c9a2405c92174c8e17f20c2b9caf3",
+ "reference": "bfd3eaba109c9a2405c92174c8e17f20c2b9caf3",
"shasum": ""
},
"require": {
"php": ">=5.3.0",
- "symfony/translation": "2.6.*"
+ "symfony/translation": "~2.6|~3.0"
},
"require-dev": {
"phpunit/phpunit": "~4.0"
@@ -1021,20 +1115,66 @@
"datetime",
"time"
],
- "time": "2015-03-26 03:05:57"
+ "time": "2015-06-25 04:19:39"
},
{
- "name": "nikic/php-parser",
- "version": "v1.2.2",
+ "name": "nicolaslopezj/searchable",
+ "version": "1.5.14",
"source": {
"type": "git",
- "url": "https://github.com/nikic/PHP-Parser.git",
- "reference": "08f97eb4efa029e2fafb6d8c98b71731bf0cf621"
+ "url": "https://github.com/nicolaslopezj/searchable.git",
+ "reference": "ecc8aa79cac4c8d7f0a4fb713828000171ecd0ab"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/nikic/PHP-Parser/zipball/08f97eb4efa029e2fafb6d8c98b71731bf0cf621",
- "reference": "08f97eb4efa029e2fafb6d8c98b71731bf0cf621",
+ "url": "https://api.github.com/repos/nicolaslopezj/searchable/zipball/ecc8aa79cac4c8d7f0a4fb713828000171ecd0ab",
+ "reference": "ecc8aa79cac4c8d7f0a4fb713828000171ecd0ab",
+ "shasum": ""
+ },
+ "require": {
+ "ext-mbstring": "*",
+ "illuminate/database": "4.2.x|~5.0",
+ "php": ">=5.4.0"
+ },
+ "type": "library",
+ "autoload": {
+ "psr-4": {
+ "Nicolaslopezj\\Searchable\\": "src/"
+ }
+ },
+ "notification-url": "https://packagist.org/downloads/",
+ "license": [
+ "MIT"
+ ],
+ "authors": [
+ {
+ "name": "Nicolas Lopez",
+ "email": "nicolaslopezj@me.com"
+ }
+ ],
+ "description": "Eloquent model search trait.",
+ "keywords": [
+ "database",
+ "eloquent",
+ "laravel",
+ "model",
+ "search",
+ "searchable"
+ ],
+ "time": "2015-08-05 18:43:42"
+ },
+ {
+ "name": "nikic/php-parser",
+ "version": "v1.4.0",
+ "source": {
+ "type": "git",
+ "url": "https://github.com/nikic/PHP-Parser.git",
+ "reference": "196f177cfefa0f1f7166c0a05d8255889be12418"
+ },
+ "dist": {
+ "type": "zip",
+ "url": "https://api.github.com/repos/nikic/PHP-Parser/zipball/196f177cfefa0f1f7166c0a05d8255889be12418",
+ "reference": "196f177cfefa0f1f7166c0a05d8255889be12418",
"shasum": ""
},
"require": {
@@ -1044,7 +1184,7 @@
"type": "library",
"extra": {
"branch-alias": {
- "dev-master": "1.2-dev"
+ "dev-master": "1.4-dev"
}
},
"autoload": {
@@ -1066,7 +1206,7 @@
"parser",
"php"
],
- "time": "2015-04-03 14:33:59"
+ "time": "2015-07-14 17:31:05"
},
{
"name": "phenx/php-font-lib",
@@ -1103,23 +1243,66 @@
"time": "2014-02-01 15:22:28"
},
{
- "name": "propaganistas/laravel-phone",
- "version": "2.1.1",
+ "name": "php-imap/php-imap",
+ "version": "2.0.2",
"source": {
"type": "git",
- "url": "https://github.com/Propaganistas/Laravel-Phone.git",
- "reference": "19ad8841b8f71a3efa03e6d4395bff0d3c85a73d"
+ "url": "https://github.com/barbushin/php-imap.git",
+ "reference": "47a3852a2a90290d94395496b475bdb65c9942d6"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/Propaganistas/Laravel-Phone/zipball/19ad8841b8f71a3efa03e6d4395bff0d3c85a73d",
- "reference": "19ad8841b8f71a3efa03e6d4395bff0d3c85a73d",
+ "url": "https://api.github.com/repos/barbushin/php-imap/zipball/47a3852a2a90290d94395496b475bdb65c9942d6",
+ "reference": "47a3852a2a90290d94395496b475bdb65c9942d6",
+ "shasum": ""
+ },
+ "require": {
+ "php": ">=5.3.0"
+ },
+ "type": "library",
+ "autoload": {
+ "psr-0": {
+ "PhpImap": "src/"
+ }
+ },
+ "notification-url": "https://packagist.org/downloads/",
+ "license": [
+ "BSD 3-Clause"
+ ],
+ "authors": [
+ {
+ "name": "Sergey Barbushin",
+ "email": "barbushin@gmail.com",
+ "homepage": "http://linkedin.com/in/barbushin"
+ }
+ ],
+ "description": "PHP class to access mailbox by POP3/IMAP/NNTP using IMAP extension",
+ "homepage": "https://github.com/barbushin/php-imap",
+ "keywords": [
+ "imap",
+ "mail",
+ "php"
+ ],
+ "time": "2015-07-09 10:24:39"
+ },
+ {
+ "name": "propaganistas/laravel-phone",
+ "version": "2.3.0",
+ "source": {
+ "type": "git",
+ "url": "https://github.com/Propaganistas/Laravel-Phone.git",
+ "reference": "272135953e9177233a19bc5f8ed45d7f7e1f1fde"
+ },
+ "dist": {
+ "type": "zip",
+ "url": "https://api.github.com/repos/Propaganistas/Laravel-Phone/zipball/272135953e9177233a19bc5f8ed45d7f7e1f1fde",
+ "reference": "272135953e9177233a19bc5f8ed45d7f7e1f1fde",
"shasum": ""
},
"require": {
"giggsey/libphonenumber-for-php": "~7.0",
- "illuminate/support": "~5.0",
- "illuminate/validation": "~5.0",
+ "illuminate/support": "~4.0|~5.0",
+ "illuminate/validation": "~4.0|~5.0",
"php": ">=5.4.0"
},
"suggest": {
@@ -1127,11 +1310,11 @@
},
"type": "library",
"autoload": {
- "psr-0": {
- "Propaganistas\\LaravelPhone": "src/"
+ "psr-4": {
+ "Propaganistas\\LaravelPhone\\": "src/"
},
"files": [
- "helpers.php"
+ "src/helpers.php"
]
},
"notification-url": "https://packagist.org/downloads/",
@@ -1151,7 +1334,7 @@
"phone",
"validation"
],
- "time": "2015-04-29 07:03:13"
+ "time": "2015-06-19 10:38:37"
},
{
"name": "psr/log",
@@ -1264,23 +1447,23 @@
},
{
"name": "swiftmailer/swiftmailer",
- "version": "v5.4.0",
+ "version": "v5.4.1",
"source": {
"type": "git",
"url": "https://github.com/swiftmailer/swiftmailer.git",
- "reference": "31454f258f10329ae7c48763eb898a75c39e0a9f"
+ "reference": "0697e6aa65c83edf97bb0f23d8763f94e3f11421"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/swiftmailer/swiftmailer/zipball/31454f258f10329ae7c48763eb898a75c39e0a9f",
- "reference": "31454f258f10329ae7c48763eb898a75c39e0a9f",
+ "url": "https://api.github.com/repos/swiftmailer/swiftmailer/zipball/0697e6aa65c83edf97bb0f23d8763f94e3f11421",
+ "reference": "0697e6aa65c83edf97bb0f23d8763f94e3f11421",
"shasum": ""
},
"require": {
"php": ">=5.3.3"
},
"require-dev": {
- "mockery/mockery": "~0.9.1"
+ "mockery/mockery": "~0.9.1,<0.9.4"
},
"type": "library",
"extra": {
@@ -1309,24 +1492,25 @@
"description": "Swiftmailer, free feature-rich PHP mailer",
"homepage": "http://swiftmailer.org",
"keywords": [
+ "email",
"mail",
"mailer"
],
- "time": "2015-03-14 06:06:39"
+ "time": "2015-06-06 14:19:39"
},
{
"name": "symfony/console",
- "version": "v2.6.6",
+ "version": "v2.6.11",
"target-dir": "Symfony/Component/Console",
"source": {
"type": "git",
"url": "https://github.com/symfony/Console.git",
- "reference": "5b91dc4ed5eb08553f57f6df04c4730a73992667"
+ "reference": "0e5e18ae09d3f5c06367759be940e9ed3f568359"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/symfony/Console/zipball/5b91dc4ed5eb08553f57f6df04c4730a73992667",
- "reference": "5b91dc4ed5eb08553f57f6df04c4730a73992667",
+ "url": "https://api.github.com/repos/symfony/Console/zipball/0e5e18ae09d3f5c06367759be940e9ed3f568359",
+ "reference": "0e5e18ae09d3f5c06367759be940e9ed3f568359",
"shasum": ""
},
"require": {
@@ -1359,32 +1543,32 @@
"MIT"
],
"authors": [
- {
- "name": "Symfony Community",
- "homepage": "http://symfony.com/contributors"
- },
{
"name": "Fabien Potencier",
"email": "fabien@symfony.com"
+ },
+ {
+ "name": "Symfony Community",
+ "homepage": "https://symfony.com/contributors"
}
],
"description": "Symfony Console Component",
- "homepage": "http://symfony.com",
- "time": "2015-03-30 15:54:10"
+ "homepage": "https://symfony.com",
+ "time": "2015-07-26 09:08:40"
},
{
"name": "symfony/debug",
- "version": "v2.6.6",
+ "version": "v2.6.11",
"target-dir": "Symfony/Component/Debug",
"source": {
"type": "git",
"url": "https://github.com/symfony/Debug.git",
- "reference": "d49a46a20a8f0544aedac54466750ad787d3d3e3"
+ "reference": "fca5696e0c9787722baa8f2ad6940dfd7a6a6941"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/symfony/Debug/zipball/d49a46a20a8f0544aedac54466750ad787d3d3e3",
- "reference": "d49a46a20a8f0544aedac54466750ad787d3d3e3",
+ "url": "https://api.github.com/repos/symfony/Debug/zipball/fca5696e0c9787722baa8f2ad6940dfd7a6a6941",
+ "reference": "fca5696e0c9787722baa8f2ad6940dfd7a6a6941",
"shasum": ""
},
"require": {
@@ -1420,36 +1604,35 @@
"MIT"
],
"authors": [
- {
- "name": "Symfony Community",
- "homepage": "http://symfony.com/contributors"
- },
{
"name": "Fabien Potencier",
"email": "fabien@symfony.com"
+ },
+ {
+ "name": "Symfony Community",
+ "homepage": "https://symfony.com/contributors"
}
],
"description": "Symfony Debug Component",
- "homepage": "http://symfony.com",
- "time": "2015-03-22 16:55:57"
+ "homepage": "https://symfony.com",
+ "time": "2015-07-08 05:59:48"
},
{
"name": "symfony/event-dispatcher",
- "version": "v2.6.6",
- "target-dir": "Symfony/Component/EventDispatcher",
+ "version": "v2.7.3",
"source": {
"type": "git",
"url": "https://github.com/symfony/EventDispatcher.git",
- "reference": "70f7c8478739ad21e3deef0d977b38c77f1fb284"
+ "reference": "9310b5f9a87ec2ea75d20fec0b0017c77c66dac3"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/symfony/EventDispatcher/zipball/70f7c8478739ad21e3deef0d977b38c77f1fb284",
- "reference": "70f7c8478739ad21e3deef0d977b38c77f1fb284",
+ "url": "https://api.github.com/repos/symfony/EventDispatcher/zipball/9310b5f9a87ec2ea75d20fec0b0017c77c66dac3",
+ "reference": "9310b5f9a87ec2ea75d20fec0b0017c77c66dac3",
"shasum": ""
},
"require": {
- "php": ">=5.3.3"
+ "php": ">=5.3.9"
},
"require-dev": {
"psr/log": "~1.0",
@@ -1466,11 +1649,11 @@
"type": "library",
"extra": {
"branch-alias": {
- "dev-master": "2.6-dev"
+ "dev-master": "2.7-dev"
}
},
"autoload": {
- "psr-0": {
+ "psr-4": {
"Symfony\\Component\\EventDispatcher\\": ""
}
},
@@ -1479,36 +1662,35 @@
"MIT"
],
"authors": [
- {
- "name": "Symfony Community",
- "homepage": "http://symfony.com/contributors"
- },
{
"name": "Fabien Potencier",
"email": "fabien@symfony.com"
+ },
+ {
+ "name": "Symfony Community",
+ "homepage": "https://symfony.com/contributors"
}
],
"description": "Symfony EventDispatcher Component",
- "homepage": "http://symfony.com",
- "time": "2015-03-13 17:37:22"
+ "homepage": "https://symfony.com",
+ "time": "2015-06-18 19:21:56"
},
{
"name": "symfony/filesystem",
- "version": "v2.6.6",
- "target-dir": "Symfony/Component/Filesystem",
+ "version": "v2.7.3",
"source": {
"type": "git",
"url": "https://github.com/symfony/Filesystem.git",
- "reference": "4983964b3693e4f13449cb3800c64a9112c301b4"
+ "reference": "2d7b2ddaf3f548f4292df49a99d19c853d43f0b8"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/symfony/Filesystem/zipball/4983964b3693e4f13449cb3800c64a9112c301b4",
- "reference": "4983964b3693e4f13449cb3800c64a9112c301b4",
+ "url": "https://api.github.com/repos/symfony/Filesystem/zipball/2d7b2ddaf3f548f4292df49a99d19c853d43f0b8",
+ "reference": "2d7b2ddaf3f548f4292df49a99d19c853d43f0b8",
"shasum": ""
},
"require": {
- "php": ">=5.3.3"
+ "php": ">=5.3.9"
},
"require-dev": {
"symfony/phpunit-bridge": "~2.7"
@@ -1516,11 +1698,11 @@
"type": "library",
"extra": {
"branch-alias": {
- "dev-master": "2.6-dev"
+ "dev-master": "2.7-dev"
}
},
"autoload": {
- "psr-0": {
+ "psr-4": {
"Symfony\\Component\\Filesystem\\": ""
}
},
@@ -1529,32 +1711,32 @@
"MIT"
],
"authors": [
- {
- "name": "Symfony Community",
- "homepage": "http://symfony.com/contributors"
- },
{
"name": "Fabien Potencier",
"email": "fabien@symfony.com"
+ },
+ {
+ "name": "Symfony Community",
+ "homepage": "https://symfony.com/contributors"
}
],
"description": "Symfony Filesystem Component",
- "homepage": "http://symfony.com",
- "time": "2015-03-22 16:55:57"
+ "homepage": "https://symfony.com",
+ "time": "2015-07-09 16:07:40"
},
{
"name": "symfony/finder",
- "version": "v2.6.6",
+ "version": "v2.6.11",
"target-dir": "Symfony/Component/Finder",
"source": {
"type": "git",
"url": "https://github.com/symfony/Finder.git",
- "reference": "5dbe2e73a580618f5b4880fda93406eed25de251"
+ "reference": "203a10f928ae30176deeba33512999233181dd28"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/symfony/Finder/zipball/5dbe2e73a580618f5b4880fda93406eed25de251",
- "reference": "5dbe2e73a580618f5b4880fda93406eed25de251",
+ "url": "https://api.github.com/repos/symfony/Finder/zipball/203a10f928ae30176deeba33512999233181dd28",
+ "reference": "203a10f928ae30176deeba33512999233181dd28",
"shasum": ""
},
"require": {
@@ -1579,32 +1761,32 @@
"MIT"
],
"authors": [
- {
- "name": "Symfony Community",
- "homepage": "http://symfony.com/contributors"
- },
{
"name": "Fabien Potencier",
"email": "fabien@symfony.com"
+ },
+ {
+ "name": "Symfony Community",
+ "homepage": "https://symfony.com/contributors"
}
],
"description": "Symfony Finder Component",
- "homepage": "http://symfony.com",
- "time": "2015-03-30 15:54:10"
+ "homepage": "https://symfony.com",
+ "time": "2015-07-09 16:02:48"
},
{
"name": "symfony/http-foundation",
- "version": "v2.6.6",
+ "version": "v2.6.11",
"target-dir": "Symfony/Component/HttpFoundation",
"source": {
"type": "git",
"url": "https://github.com/symfony/HttpFoundation.git",
- "reference": "8a6337233f08f7520de97f4ffd6f00e947d892f9"
+ "reference": "e8fd1b73ac1c3de1f76c73801ddf1a8ecb1c1c9c"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/symfony/HttpFoundation/zipball/8a6337233f08f7520de97f4ffd6f00e947d892f9",
- "reference": "8a6337233f08f7520de97f4ffd6f00e947d892f9",
+ "url": "https://api.github.com/repos/symfony/HttpFoundation/zipball/e8fd1b73ac1c3de1f76c73801ddf1a8ecb1c1c9c",
+ "reference": "e8fd1b73ac1c3de1f76c73801ddf1a8ecb1c1c9c",
"shasum": ""
},
"require": {
@@ -1633,39 +1815,39 @@
"MIT"
],
"authors": [
- {
- "name": "Symfony Community",
- "homepage": "http://symfony.com/contributors"
- },
{
"name": "Fabien Potencier",
"email": "fabien@symfony.com"
+ },
+ {
+ "name": "Symfony Community",
+ "homepage": "https://symfony.com/contributors"
}
],
"description": "Symfony HttpFoundation Component",
- "homepage": "http://symfony.com",
- "time": "2015-04-01 16:50:12"
+ "homepage": "https://symfony.com",
+ "time": "2015-07-22 10:08:40"
},
{
"name": "symfony/http-kernel",
- "version": "v2.6.6",
+ "version": "v2.6.11",
"target-dir": "Symfony/Component/HttpKernel",
"source": {
"type": "git",
"url": "https://github.com/symfony/HttpKernel.git",
- "reference": "3829cacfe21eaf3f73604a62d79183d1f6e792c4"
+ "reference": "a3f0ed713255c0400a2db38b3ed01989ef4b7322"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/symfony/HttpKernel/zipball/3829cacfe21eaf3f73604a62d79183d1f6e792c4",
- "reference": "3829cacfe21eaf3f73604a62d79183d1f6e792c4",
+ "url": "https://api.github.com/repos/symfony/HttpKernel/zipball/a3f0ed713255c0400a2db38b3ed01989ef4b7322",
+ "reference": "a3f0ed713255c0400a2db38b3ed01989ef4b7322",
"shasum": ""
},
"require": {
"php": ">=5.3.3",
"psr/log": "~1.0",
"symfony/debug": "~2.6,>=2.6.2",
- "symfony/event-dispatcher": "~2.5.9|~2.6,>=2.6.2",
+ "symfony/event-dispatcher": "~2.6,>=2.6.7",
"symfony/http-foundation": "~2.5,>=2.5.4"
},
"require-dev": {
@@ -1711,32 +1893,32 @@
"MIT"
],
"authors": [
- {
- "name": "Symfony Community",
- "homepage": "http://symfony.com/contributors"
- },
{
"name": "Fabien Potencier",
"email": "fabien@symfony.com"
+ },
+ {
+ "name": "Symfony Community",
+ "homepage": "https://symfony.com/contributors"
}
],
"description": "Symfony HttpKernel Component",
- "homepage": "http://symfony.com",
- "time": "2015-04-01 16:55:26"
+ "homepage": "https://symfony.com",
+ "time": "2015-07-26 10:44:22"
},
{
"name": "symfony/process",
- "version": "v2.6.6",
+ "version": "v2.6.11",
"target-dir": "Symfony/Component/Process",
"source": {
"type": "git",
"url": "https://github.com/symfony/Process.git",
- "reference": "a8bebaec1a9dc6cde53e0250e32917579b0be552"
+ "reference": "57f1e88bb5dafa449b83f9f265b11d52d517b3e9"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/symfony/Process/zipball/a8bebaec1a9dc6cde53e0250e32917579b0be552",
- "reference": "a8bebaec1a9dc6cde53e0250e32917579b0be552",
+ "url": "https://api.github.com/repos/symfony/Process/zipball/57f1e88bb5dafa449b83f9f265b11d52d517b3e9",
+ "reference": "57f1e88bb5dafa449b83f9f265b11d52d517b3e9",
"shasum": ""
},
"require": {
@@ -1761,32 +1943,32 @@
"MIT"
],
"authors": [
- {
- "name": "Symfony Community",
- "homepage": "http://symfony.com/contributors"
- },
{
"name": "Fabien Potencier",
"email": "fabien@symfony.com"
+ },
+ {
+ "name": "Symfony Community",
+ "homepage": "https://symfony.com/contributors"
}
],
"description": "Symfony Process Component",
- "homepage": "http://symfony.com",
- "time": "2015-03-30 15:54:10"
+ "homepage": "https://symfony.com",
+ "time": "2015-06-30 16:10:16"
},
{
"name": "symfony/routing",
- "version": "v2.6.6",
+ "version": "v2.6.11",
"target-dir": "Symfony/Component/Routing",
"source": {
"type": "git",
"url": "https://github.com/symfony/Routing.git",
- "reference": "4e173a645b63ff60a124f3741b4f15feebd908fa"
+ "reference": "0a1764d41bbb54f3864808c50569ac382b44d128"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/symfony/Routing/zipball/4e173a645b63ff60a124f3741b4f15feebd908fa",
- "reference": "4e173a645b63ff60a124f3741b4f15feebd908fa",
+ "url": "https://api.github.com/repos/symfony/Routing/zipball/0a1764d41bbb54f3864808c50569ac382b44d128",
+ "reference": "0a1764d41bbb54f3864808c50569ac382b44d128",
"shasum": ""
},
"require": {
@@ -1824,38 +2006,38 @@
"MIT"
],
"authors": [
- {
- "name": "Symfony Community",
- "homepage": "http://symfony.com/contributors"
- },
{
"name": "Fabien Potencier",
"email": "fabien@symfony.com"
+ },
+ {
+ "name": "Symfony Community",
+ "homepage": "https://symfony.com/contributors"
}
],
"description": "Symfony Routing Component",
- "homepage": "http://symfony.com",
+ "homepage": "https://symfony.com",
"keywords": [
"router",
"routing",
"uri",
"url"
],
- "time": "2015-03-30 15:54:10"
+ "time": "2015-07-09 16:02:48"
},
{
"name": "symfony/security-core",
- "version": "v2.6.6",
+ "version": "v2.6.11",
"target-dir": "Symfony/Component/Security/Core",
"source": {
"type": "git",
"url": "https://github.com/symfony/security-core.git",
- "reference": "d25c17db741f58c0f615e52006a47f6fb23cd9b3"
+ "reference": "05f58bb3814e8a853332dc448e3b7addaa87679c"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/symfony/security-core/zipball/d25c17db741f58c0f615e52006a47f6fb23cd9b3",
- "reference": "d25c17db741f58c0f615e52006a47f6fb23cd9b3",
+ "url": "https://api.github.com/repos/symfony/security-core/zipball/05f58bb3814e8a853332dc448e3b7addaa87679c",
+ "reference": "05f58bb3814e8a853332dc448e3b7addaa87679c",
"shasum": ""
},
"require": {
@@ -1894,32 +2076,32 @@
"MIT"
],
"authors": [
- {
- "name": "Symfony Community",
- "homepage": "http://symfony.com/contributors"
- },
{
"name": "Fabien Potencier",
"email": "fabien@symfony.com"
+ },
+ {
+ "name": "Symfony Community",
+ "homepage": "https://symfony.com/contributors"
}
],
"description": "Symfony Security Component - Core Library",
- "homepage": "http://symfony.com",
- "time": "2015-03-30 15:54:10"
+ "homepage": "https://symfony.com",
+ "time": "2015-07-22 10:08:40"
},
{
"name": "symfony/translation",
- "version": "v2.6.6",
+ "version": "v2.6.11",
"target-dir": "Symfony/Component/Translation",
"source": {
"type": "git",
"url": "https://github.com/symfony/Translation.git",
- "reference": "bd939f05cdaca128f4ddbae1b447d6f0203b60af"
+ "reference": "d84291215b5892834dd8ca8ee52f9cbdb8274904"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/symfony/Translation/zipball/bd939f05cdaca128f4ddbae1b447d6f0203b60af",
- "reference": "bd939f05cdaca128f4ddbae1b447d6f0203b60af",
+ "url": "https://api.github.com/repos/symfony/Translation/zipball/d84291215b5892834dd8ca8ee52f9cbdb8274904",
+ "reference": "d84291215b5892834dd8ca8ee52f9cbdb8274904",
"shasum": ""
},
"require": {
@@ -1953,32 +2135,32 @@
"MIT"
],
"authors": [
- {
- "name": "Symfony Community",
- "homepage": "http://symfony.com/contributors"
- },
{
"name": "Fabien Potencier",
"email": "fabien@symfony.com"
+ },
+ {
+ "name": "Symfony Community",
+ "homepage": "https://symfony.com/contributors"
}
],
"description": "Symfony Translation Component",
- "homepage": "http://symfony.com",
- "time": "2015-03-30 15:54:10"
+ "homepage": "https://symfony.com",
+ "time": "2015-07-08 05:59:48"
},
{
"name": "symfony/var-dumper",
- "version": "v2.6.6",
+ "version": "v2.6.11",
"target-dir": "Symfony/Component/VarDumper",
"source": {
"type": "git",
"url": "https://github.com/symfony/var-dumper.git",
- "reference": "aafae00236e147568832de3c65ccb94cfc836278"
+ "reference": "5fba957a30161d8724aade093593cd22f815bea2"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/symfony/var-dumper/zipball/aafae00236e147568832de3c65ccb94cfc836278",
- "reference": "aafae00236e147568832de3c65ccb94cfc836278",
+ "url": "https://api.github.com/repos/symfony/var-dumper/zipball/5fba957a30161d8724aade093593cd22f815bea2",
+ "reference": "5fba957a30161d8724aade093593cd22f815bea2",
"shasum": ""
},
"require": {
@@ -2009,35 +2191,140 @@
"MIT"
],
"authors": [
- {
- "name": "Symfony Community",
- "homepage": "http://symfony.com/contributors"
- },
{
"name": "Nicolas Grekas",
"email": "p@tchwork.com"
+ },
+ {
+ "name": "Symfony Community",
+ "homepage": "https://symfony.com/contributors"
}
],
"description": "Symfony mechanism for exploring and dumping PHP variables",
- "homepage": "http://symfony.com",
+ "homepage": "https://symfony.com",
"keywords": [
"debug",
"dump"
],
- "time": "2015-03-31 08:12:29"
+ "time": "2015-07-01 10:03:42"
},
{
- "name": "vlucas/phpdotenv",
- "version": "v1.1.0",
+ "name": "thomaswelton/gravatarlib",
+ "version": "0.1.0",
+ "target-dir": "thomaswelton/GravatarLib",
"source": {
"type": "git",
- "url": "https://github.com/vlucas/phpdotenv.git",
- "reference": "732d2adb7d916c9593b9d58c3b0d9ebefead07aa"
+ "url": "https://github.com/thomaswelton/gravatarlib.git",
+ "reference": "8a4e829c53ca2abb51ef2e514f696938a9bdbd0c"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/vlucas/phpdotenv/zipball/732d2adb7d916c9593b9d58c3b0d9ebefead07aa",
- "reference": "732d2adb7d916c9593b9d58c3b0d9ebefead07aa",
+ "url": "https://api.github.com/repos/thomaswelton/gravatarlib/zipball/8a4e829c53ca2abb51ef2e514f696938a9bdbd0c",
+ "reference": "8a4e829c53ca2abb51ef2e514f696938a9bdbd0c",
+ "shasum": ""
+ },
+ "require": {
+ "php": ">=5.3.0"
+ },
+ "suggest": {
+ "twig/twig": ">=1.4.0"
+ },
+ "type": "library",
+ "autoload": {
+ "psr-0": {
+ "thomaswelton\\GravatarLib\\": ""
+ }
+ },
+ "notification-url": "https://packagist.org/downloads/",
+ "license": [
+ "MIT"
+ ],
+ "authors": [
+ {
+ "name": "Sam Thompson",
+ "email": "sam@emberlabs.org"
+ },
+ {
+ "name": "Damian Bushong",
+ "email": "damian@emberlabs.org"
+ },
+ {
+ "name": "Thomas Welton",
+ "email": "thomaswelton@me.com",
+ "homepage": "https://github.com/thomaswelton",
+ "role": "Developer"
+ }
+ ],
+ "description": "A lightweight PHP 5.3 OOP library providing easy gravatar integration.",
+ "keywords": [
+ "gravatar",
+ "templating",
+ "twig"
+ ],
+ "time": "2014-03-02 18:29:18"
+ },
+ {
+ "name": "thomaswelton/laravel-gravatar",
+ "version": "1.0.0",
+ "source": {
+ "type": "git",
+ "url": "https://github.com/thomaswelton/laravel-gravatar.git",
+ "reference": "c688c5823778a22f511358fd0717aa44f5655a26"
+ },
+ "dist": {
+ "type": "zip",
+ "url": "https://api.github.com/repos/thomaswelton/laravel-gravatar/zipball/c688c5823778a22f511358fd0717aa44f5655a26",
+ "reference": "c688c5823778a22f511358fd0717aa44f5655a26",
+ "shasum": ""
+ },
+ "require": {
+ "illuminate/support": "~5.0",
+ "php": ">=5.4.0",
+ "thomaswelton/gravatarlib": "0.1.x"
+ },
+ "type": "library",
+ "autoload": {
+ "psr-0": {
+ "Thomaswelton\\LaravelGravatar": "src/"
+ }
+ },
+ "notification-url": "https://packagist.org/downloads/",
+ "license": [
+ "MIT"
+ ],
+ "authors": [
+ {
+ "name": "ThomasWelton",
+ "email": "thomaswelton@me.com",
+ "role": "Developer"
+ },
+ {
+ "name": "Antoine Augusti",
+ "email": "antoine.augusti@gmail.com",
+ "role": "Developer"
+ }
+ ],
+ "description": "Laravel 5 Gravatar helper",
+ "homepage": "https://github.com/thomaswelton/laravel-gravatar",
+ "keywords": [
+ "gravatar",
+ "laravel",
+ "laravel5"
+ ],
+ "time": "2015-05-14 15:26:16"
+ },
+ {
+ "name": "vlucas/phpdotenv",
+ "version": "v1.1.1",
+ "source": {
+ "type": "git",
+ "url": "https://github.com/vlucas/phpdotenv.git",
+ "reference": "0cac554ce06277e33ddf9f0b7ade4b8bbf2af3fa"
+ },
+ "dist": {
+ "type": "zip",
+ "url": "https://api.github.com/repos/vlucas/phpdotenv/zipball/0cac554ce06277e33ddf9f0b7ade4b8bbf2af3fa",
+ "reference": "0cac554ce06277e33ddf9f0b7ade4b8bbf2af3fa",
"shasum": ""
},
"require": {
@@ -2047,11 +2334,6 @@
"phpunit/phpunit": "~4.0"
},
"type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "1.0-dev"
- }
- },
"autoload": {
"psr-0": {
"Dotenv": "src/"
@@ -2075,7 +2357,7 @@
"env",
"environment"
],
- "time": "2014-12-05 15:19:21"
+ "time": "2015-05-30 15:59:26"
},
{
"name": "vsmoraes/laravel-pdf",
@@ -2126,16 +2408,16 @@
"packages-dev": [
{
"name": "doctrine/instantiator",
- "version": "1.0.4",
+ "version": "1.0.5",
"source": {
"type": "git",
"url": "https://github.com/doctrine/instantiator.git",
- "reference": "f976e5de371104877ebc89bd8fecb0019ed9c119"
+ "reference": "8e884e78f9f0eb1329e445619e04456e64d8051d"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/doctrine/instantiator/zipball/f976e5de371104877ebc89bd8fecb0019ed9c119",
- "reference": "f976e5de371104877ebc89bd8fecb0019ed9c119",
+ "url": "https://api.github.com/repos/doctrine/instantiator/zipball/8e884e78f9f0eb1329e445619e04456e64d8051d",
+ "reference": "8e884e78f9f0eb1329e445619e04456e64d8051d",
"shasum": ""
},
"require": {
@@ -2146,7 +2428,7 @@
"ext-pdo": "*",
"ext-phar": "*",
"phpunit/phpunit": "~4.0",
- "squizlabs/php_codesniffer": "2.0.*@ALPHA"
+ "squizlabs/php_codesniffer": "~2.0"
},
"type": "library",
"extra": {
@@ -2155,8 +2437,8 @@
}
},
"autoload": {
- "psr-0": {
- "Doctrine\\Instantiator\\": "src"
+ "psr-4": {
+ "Doctrine\\Instantiator\\": "src/Doctrine/Instantiator/"
}
},
"notification-url": "https://packagist.org/downloads/",
@@ -2176,7 +2458,7 @@
"constructor",
"instantiate"
],
- "time": "2014-10-13 12:58:55"
+ "time": "2015-06-14 21:17:01"
},
{
"name": "phpdocumentor/reflection-docblock",
@@ -2263,16 +2545,16 @@
},
{
"name": "phpspec/phpspec",
- "version": "2.2.0",
+ "version": "2.2.1",
"source": {
"type": "git",
"url": "https://github.com/phpspec/phpspec.git",
- "reference": "9727d75919a00455433e867565bc022f0b985a39"
+ "reference": "e9a40577323e67f1de2e214abf32976a0352d8f8"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/phpspec/phpspec/zipball/9727d75919a00455433e867565bc022f0b985a39",
- "reference": "9727d75919a00455433e867565bc022f0b985a39",
+ "url": "https://api.github.com/repos/phpspec/phpspec/zipball/e9a40577323e67f1de2e214abf32976a0352d8f8",
+ "reference": "e9a40577323e67f1de2e214abf32976a0352d8f8",
"shasum": ""
},
"require": {
@@ -2337,7 +2619,7 @@
"testing",
"tests"
],
- "time": "2015-04-18 16:22:51"
+ "time": "2015-05-30 15:21:40"
},
{
"name": "phpspec/prophecy",
@@ -2401,16 +2683,16 @@
},
{
"name": "phpunit/php-code-coverage",
- "version": "2.0.16",
+ "version": "2.2.2",
"source": {
"type": "git",
"url": "https://github.com/sebastianbergmann/php-code-coverage.git",
- "reference": "934fd03eb6840508231a7f73eb8940cf32c3b66c"
+ "reference": "2d7c03c0e4e080901b8f33b2897b0577be18a13c"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/sebastianbergmann/php-code-coverage/zipball/934fd03eb6840508231a7f73eb8940cf32c3b66c",
- "reference": "934fd03eb6840508231a7f73eb8940cf32c3b66c",
+ "url": "https://api.github.com/repos/sebastianbergmann/php-code-coverage/zipball/2d7c03c0e4e080901b8f33b2897b0577be18a13c",
+ "reference": "2d7c03c0e4e080901b8f33b2897b0577be18a13c",
"shasum": ""
},
"require": {
@@ -2418,7 +2700,7 @@
"phpunit/php-file-iterator": "~1.3",
"phpunit/php-text-template": "~1.2",
"phpunit/php-token-stream": "~1.3",
- "sebastian/environment": "~1.0",
+ "sebastian/environment": "^1.3.2",
"sebastian/version": "~1.0"
},
"require-dev": {
@@ -2433,7 +2715,7 @@
"type": "library",
"extra": {
"branch-alias": {
- "dev-master": "2.0.x-dev"
+ "dev-master": "2.2.x-dev"
}
},
"autoload": {
@@ -2459,20 +2741,20 @@
"testing",
"xunit"
],
- "time": "2015-04-11 04:35:00"
+ "time": "2015-08-04 03:42:39"
},
{
"name": "phpunit/php-file-iterator",
- "version": "1.4.0",
+ "version": "1.4.1",
"source": {
"type": "git",
"url": "https://github.com/sebastianbergmann/php-file-iterator.git",
- "reference": "a923bb15680d0089e2316f7a4af8f437046e96bb"
+ "reference": "6150bf2c35d3fc379e50c7602b75caceaa39dbf0"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/sebastianbergmann/php-file-iterator/zipball/a923bb15680d0089e2316f7a4af8f437046e96bb",
- "reference": "a923bb15680d0089e2316f7a4af8f437046e96bb",
+ "url": "https://api.github.com/repos/sebastianbergmann/php-file-iterator/zipball/6150bf2c35d3fc379e50c7602b75caceaa39dbf0",
+ "reference": "6150bf2c35d3fc379e50c7602b75caceaa39dbf0",
"shasum": ""
},
"require": {
@@ -2506,20 +2788,20 @@
"filesystem",
"iterator"
],
- "time": "2015-04-02 05:19:05"
+ "time": "2015-06-21 13:08:43"
},
{
"name": "phpunit/php-text-template",
- "version": "1.2.0",
+ "version": "1.2.1",
"source": {
"type": "git",
"url": "https://github.com/sebastianbergmann/php-text-template.git",
- "reference": "206dfefc0ffe9cebf65c413e3d0e809c82fbf00a"
+ "reference": "31f8b717e51d9a2afca6c9f046f5d69fc27c8686"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/sebastianbergmann/php-text-template/zipball/206dfefc0ffe9cebf65c413e3d0e809c82fbf00a",
- "reference": "206dfefc0ffe9cebf65c413e3d0e809c82fbf00a",
+ "url": "https://api.github.com/repos/sebastianbergmann/php-text-template/zipball/31f8b717e51d9a2afca6c9f046f5d69fc27c8686",
+ "reference": "31f8b717e51d9a2afca6c9f046f5d69fc27c8686",
"shasum": ""
},
"require": {
@@ -2528,20 +2810,17 @@
"type": "library",
"autoload": {
"classmap": [
- "Text/"
+ "src/"
]
},
"notification-url": "https://packagist.org/downloads/",
- "include-path": [
- ""
- ],
"license": [
"BSD-3-Clause"
],
"authors": [
{
"name": "Sebastian Bergmann",
- "email": "sb@sebastian-bergmann.de",
+ "email": "sebastian@phpunit.de",
"role": "lead"
}
],
@@ -2550,20 +2829,20 @@
"keywords": [
"template"
],
- "time": "2014-01-30 17:20:04"
+ "time": "2015-06-21 13:50:34"
},
{
"name": "phpunit/php-timer",
- "version": "1.0.5",
+ "version": "1.0.7",
"source": {
"type": "git",
"url": "https://github.com/sebastianbergmann/php-timer.git",
- "reference": "19689d4354b295ee3d8c54b4f42c3efb69cbc17c"
+ "reference": "3e82f4e9fc92665fafd9157568e4dcb01d014e5b"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/sebastianbergmann/php-timer/zipball/19689d4354b295ee3d8c54b4f42c3efb69cbc17c",
- "reference": "19689d4354b295ee3d8c54b4f42c3efb69cbc17c",
+ "url": "https://api.github.com/repos/sebastianbergmann/php-timer/zipball/3e82f4e9fc92665fafd9157568e4dcb01d014e5b",
+ "reference": "3e82f4e9fc92665fafd9157568e4dcb01d014e5b",
"shasum": ""
},
"require": {
@@ -2572,13 +2851,10 @@
"type": "library",
"autoload": {
"classmap": [
- "PHP/"
+ "src/"
]
},
"notification-url": "https://packagist.org/downloads/",
- "include-path": [
- ""
- ],
"license": [
"BSD-3-Clause"
],
@@ -2594,20 +2870,20 @@
"keywords": [
"timer"
],
- "time": "2013-08-02 07:42:54"
+ "time": "2015-06-21 08:01:12"
},
{
"name": "phpunit/php-token-stream",
- "version": "1.4.1",
+ "version": "1.4.3",
"source": {
"type": "git",
"url": "https://github.com/sebastianbergmann/php-token-stream.git",
- "reference": "eab81d02569310739373308137284e0158424330"
+ "reference": "7a9b0969488c3c54fd62b4d504b3ec758fd005d9"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/sebastianbergmann/php-token-stream/zipball/eab81d02569310739373308137284e0158424330",
- "reference": "eab81d02569310739373308137284e0158424330",
+ "url": "https://api.github.com/repos/sebastianbergmann/php-token-stream/zipball/7a9b0969488c3c54fd62b4d504b3ec758fd005d9",
+ "reference": "7a9b0969488c3c54fd62b4d504b3ec758fd005d9",
"shasum": ""
},
"require": {
@@ -2643,20 +2919,20 @@
"keywords": [
"tokenizer"
],
- "time": "2015-04-08 04:46:07"
+ "time": "2015-06-19 03:43:16"
},
{
"name": "phpunit/phpunit",
- "version": "4.6.6",
+ "version": "4.7.7",
"source": {
"type": "git",
"url": "https://github.com/sebastianbergmann/phpunit.git",
- "reference": "3afe303d873a4d64c62ef84de491b97b006fbdac"
+ "reference": "9b97f9d807b862c2de2a36e86690000801c85724"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/sebastianbergmann/phpunit/zipball/3afe303d873a4d64c62ef84de491b97b006fbdac",
- "reference": "3afe303d873a4d64c62ef84de491b97b006fbdac",
+ "url": "https://api.github.com/repos/sebastianbergmann/phpunit/zipball/9b97f9d807b862c2de2a36e86690000801c85724",
+ "reference": "9b97f9d807b862c2de2a36e86690000801c85724",
"shasum": ""
},
"require": {
@@ -2667,10 +2943,10 @@
"ext-spl": "*",
"php": ">=5.3.3",
"phpspec/prophecy": "~1.3,>=1.3.1",
- "phpunit/php-code-coverage": "~2.0,>=2.0.11",
+ "phpunit/php-code-coverage": "~2.1",
"phpunit/php-file-iterator": "~1.4",
"phpunit/php-text-template": "~1.2",
- "phpunit/php-timer": "~1.0",
+ "phpunit/php-timer": ">=1.0.6",
"phpunit/phpunit-mock-objects": "~2.3",
"sebastian/comparator": "~1.1",
"sebastian/diff": "~1.2",
@@ -2689,7 +2965,7 @@
"type": "library",
"extra": {
"branch-alias": {
- "dev-master": "4.6.x-dev"
+ "dev-master": "4.7.x-dev"
}
},
"autoload": {
@@ -2715,26 +2991,27 @@
"testing",
"xunit"
],
- "time": "2015-04-29 15:18:52"
+ "time": "2015-07-13 11:28:34"
},
{
"name": "phpunit/phpunit-mock-objects",
- "version": "2.3.1",
+ "version": "2.3.6",
"source": {
"type": "git",
"url": "https://github.com/sebastianbergmann/phpunit-mock-objects.git",
- "reference": "74ffb87f527f24616f72460e54b595f508dccb5c"
+ "reference": "18dfbcb81d05e2296c0bcddd4db96cade75e6f42"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/sebastianbergmann/phpunit-mock-objects/zipball/74ffb87f527f24616f72460e54b595f508dccb5c",
- "reference": "74ffb87f527f24616f72460e54b595f508dccb5c",
+ "url": "https://api.github.com/repos/sebastianbergmann/phpunit-mock-objects/zipball/18dfbcb81d05e2296c0bcddd4db96cade75e6f42",
+ "reference": "18dfbcb81d05e2296c0bcddd4db96cade75e6f42",
"shasum": ""
},
"require": {
"doctrine/instantiator": "~1.0,>=1.0.2",
"php": ">=5.3.3",
- "phpunit/php-text-template": "~1.2"
+ "phpunit/php-text-template": "~1.2",
+ "sebastian/exporter": "~1.2"
},
"require-dev": {
"phpunit/phpunit": "~4.4"
@@ -2770,20 +3047,20 @@
"mock",
"xunit"
],
- "time": "2015-04-02 05:36:41"
+ "time": "2015-07-10 06:54:24"
},
{
"name": "sebastian/comparator",
- "version": "1.1.1",
+ "version": "1.2.0",
"source": {
"type": "git",
"url": "https://github.com/sebastianbergmann/comparator.git",
- "reference": "1dd8869519a225f7f2b9eb663e225298fade819e"
+ "reference": "937efb279bd37a375bcadf584dec0726f84dbf22"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/sebastianbergmann/comparator/zipball/1dd8869519a225f7f2b9eb663e225298fade819e",
- "reference": "1dd8869519a225f7f2b9eb663e225298fade819e",
+ "url": "https://api.github.com/repos/sebastianbergmann/comparator/zipball/937efb279bd37a375bcadf584dec0726f84dbf22",
+ "reference": "937efb279bd37a375bcadf584dec0726f84dbf22",
"shasum": ""
},
"require": {
@@ -2797,7 +3074,7 @@
"type": "library",
"extra": {
"branch-alias": {
- "dev-master": "1.1.x-dev"
+ "dev-master": "1.2.x-dev"
}
},
"autoload": {
@@ -2834,7 +3111,7 @@
"compare",
"equality"
],
- "time": "2015-01-29 16:28:08"
+ "time": "2015-07-26 15:48:44"
},
{
"name": "sebastian/diff",
@@ -2890,16 +3167,16 @@
},
{
"name": "sebastian/environment",
- "version": "1.2.2",
+ "version": "1.3.2",
"source": {
"type": "git",
"url": "https://github.com/sebastianbergmann/environment.git",
- "reference": "5a8c7d31914337b69923db26c4221b81ff5a196e"
+ "reference": "6324c907ce7a52478eeeaede764f48733ef5ae44"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/sebastianbergmann/environment/zipball/5a8c7d31914337b69923db26c4221b81ff5a196e",
- "reference": "5a8c7d31914337b69923db26c4221b81ff5a196e",
+ "url": "https://api.github.com/repos/sebastianbergmann/environment/zipball/6324c907ce7a52478eeeaede764f48733ef5ae44",
+ "reference": "6324c907ce7a52478eeeaede764f48733ef5ae44",
"shasum": ""
},
"require": {
@@ -2936,20 +3213,20 @@
"environment",
"hhvm"
],
- "time": "2015-01-01 10:01:08"
+ "time": "2015-08-03 06:14:51"
},
{
"name": "sebastian/exporter",
- "version": "1.2.0",
+ "version": "1.2.1",
"source": {
"type": "git",
"url": "https://github.com/sebastianbergmann/exporter.git",
- "reference": "84839970d05254c73cde183a721c7af13aede943"
+ "reference": "7ae5513327cb536431847bcc0c10edba2701064e"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/sebastianbergmann/exporter/zipball/84839970d05254c73cde183a721c7af13aede943",
- "reference": "84839970d05254c73cde183a721c7af13aede943",
+ "url": "https://api.github.com/repos/sebastianbergmann/exporter/zipball/7ae5513327cb536431847bcc0c10edba2701064e",
+ "reference": "7ae5513327cb536431847bcc0c10edba2701064e",
"shasum": ""
},
"require": {
@@ -3002,7 +3279,7 @@
"export",
"exporter"
],
- "time": "2015-01-27 07:23:06"
+ "time": "2015-06-21 07:55:53"
},
{
"name": "sebastian/global-state",
@@ -3057,16 +3334,16 @@
},
{
"name": "sebastian/recursion-context",
- "version": "1.0.0",
+ "version": "1.0.1",
"source": {
"type": "git",
"url": "https://github.com/sebastianbergmann/recursion-context.git",
- "reference": "3989662bbb30a29d20d9faa04a846af79b276252"
+ "reference": "994d4a811bafe801fb06dccbee797863ba2792ba"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/sebastianbergmann/recursion-context/zipball/3989662bbb30a29d20d9faa04a846af79b276252",
- "reference": "3989662bbb30a29d20d9faa04a846af79b276252",
+ "url": "https://api.github.com/repos/sebastianbergmann/recursion-context/zipball/994d4a811bafe801fb06dccbee797863ba2792ba",
+ "reference": "994d4a811bafe801fb06dccbee797863ba2792ba",
"shasum": ""
},
"require": {
@@ -3106,20 +3383,20 @@
],
"description": "Provides functionality to recursively process PHP variables",
"homepage": "http://www.github.com/sebastianbergmann/recursion-context",
- "time": "2015-01-24 09:48:32"
+ "time": "2015-06-21 08:04:50"
},
{
"name": "sebastian/version",
- "version": "1.0.5",
+ "version": "1.0.6",
"source": {
"type": "git",
"url": "https://github.com/sebastianbergmann/version.git",
- "reference": "ab931d46cd0d3204a91e1b9a40c4bc13032b58e4"
+ "reference": "58b3a85e7999757d6ad81c787a1fbf5ff6c628c6"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/sebastianbergmann/version/zipball/ab931d46cd0d3204a91e1b9a40c4bc13032b58e4",
- "reference": "ab931d46cd0d3204a91e1b9a40c4bc13032b58e4",
+ "url": "https://api.github.com/repos/sebastianbergmann/version/zipball/58b3a85e7999757d6ad81c787a1fbf5ff6c628c6",
+ "reference": "58b3a85e7999757d6ad81c787a1fbf5ff6c628c6",
"shasum": ""
},
"type": "library",
@@ -3141,25 +3418,24 @@
],
"description": "Library that helps with managing the version number of Git-hosted PHP projects",
"homepage": "https://github.com/sebastianbergmann/version",
- "time": "2015-02-24 06:35:25"
+ "time": "2015-06-21 13:59:46"
},
{
"name": "symfony/yaml",
- "version": "v2.6.6",
- "target-dir": "Symfony/Component/Yaml",
+ "version": "v2.7.3",
"source": {
"type": "git",
"url": "https://github.com/symfony/Yaml.git",
- "reference": "174f009ed36379a801109955fc5a71a49fe62dd4"
+ "reference": "71340e996171474a53f3d29111d046be4ad8a0ff"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/symfony/Yaml/zipball/174f009ed36379a801109955fc5a71a49fe62dd4",
- "reference": "174f009ed36379a801109955fc5a71a49fe62dd4",
+ "url": "https://api.github.com/repos/symfony/Yaml/zipball/71340e996171474a53f3d29111d046be4ad8a0ff",
+ "reference": "71340e996171474a53f3d29111d046be4ad8a0ff",
"shasum": ""
},
"require": {
- "php": ">=5.3.3"
+ "php": ">=5.3.9"
},
"require-dev": {
"symfony/phpunit-bridge": "~2.7"
@@ -3167,11 +3443,11 @@
"type": "library",
"extra": {
"branch-alias": {
- "dev-master": "2.6-dev"
+ "dev-master": "2.7-dev"
}
},
"autoload": {
- "psr-0": {
+ "psr-4": {
"Symfony\\Component\\Yaml\\": ""
}
},
@@ -3180,23 +3456,25 @@
"MIT"
],
"authors": [
- {
- "name": "Symfony Community",
- "homepage": "http://symfony.com/contributors"
- },
{
"name": "Fabien Potencier",
"email": "fabien@symfony.com"
+ },
+ {
+ "name": "Symfony Community",
+ "homepage": "https://symfony.com/contributors"
}
],
"description": "Symfony Yaml Component",
- "homepage": "http://symfony.com",
- "time": "2015-03-30 15:54:10"
+ "homepage": "https://symfony.com",
+ "time": "2015-07-28 14:07:07"
}
],
"aliases": [],
"minimum-stability": "stable",
- "stability-flags": [],
+ "stability-flags": {
+ "neitanod/forceutf8": 20
+ },
"prefer-stable": false,
"prefer-lowest": false,
"platform": [],
diff --git a/code/config/app.php b/code/code/config/app.php
similarity index 75%
rename from code/config/app.php
rename to code/code/config/app.php
index d63b3d0f5..dbc75be77 100644
--- a/code/config/app.php
+++ b/code/code/config/app.php
@@ -11,7 +11,7 @@ return [
| stack traces will be shown on every error that occurs within your
| application. If disabled, a simple generic error page is shown.
|
- */
+ */
'debug' => true,
@@ -24,7 +24,7 @@ return [
| the Artisan command line tool. You should set this to the root of
| your application so that it is used when running Artisan tasks.
|
- */
+ */
'url' => 'http://localhost',
@@ -37,7 +37,7 @@ return [
| will be used by the PHP date and date-time functions. We have gone
| ahead and set this to a sensible default for you out of the box.
|
- */
+ */
'timezone' => 'UTC',
@@ -50,7 +50,7 @@ return [
| by the translation service provider. You are free to set this value
| to any of the locales which will be supported by the application.
|
- */
+ */
'locale' => 'en',
@@ -63,7 +63,7 @@ return [
| is not available. You may change the value to correspond to any of
| the language folders that are provided through your application.
|
- */
+ */
'fallback_locale' => 'en',
@@ -76,9 +76,9 @@ return [
| to a random, 32 character string, otherwise these encrypted strings
| will not be safe. Please do this before deploying an application!
|
- */
+ */
- 'key' => env('APP_KEY', 'SomeRandomString'),
+ 'key' => env('APP_KEY', 'AEVQf2ecD6Czpw6r2jairFxbXohG72fH'),
'cipher' => MCRYPT_RIJNDAEL_128,
@@ -93,7 +93,7 @@ return [
|
| Available Settings: "single", "daily", "syslog", "errorlog"
|
- */
+ */
'log' => 'daily',
@@ -106,7 +106,7 @@ return [
| request to your application. Feel free to add your own services to
| this array to grant expanded functionality to your applications.
|
- */
+ */
'providers' => [
@@ -146,8 +146,8 @@ return [
'App\Providers\RouteServiceProvider',
'Propaganistas\LaravelPhone\LaravelPhoneServiceProvider',
'Bugsnag\BugsnagLaravel\BugsnagLaravelServiceProvider',
-
-
+ 'Vsmoraes\Pdf\PdfServiceProvider',
+ 'Thomaswelton\LaravelGravatar\LaravelGravatarServiceProvider',
],
@@ -160,49 +160,48 @@ return [
| is started. However, feel free to register as many as you wish as
| the aliases are "lazy" loaded so they don't hinder performance.
|
- */
+ */
'aliases' => [
- 'App' => 'Illuminate\Support\Facades\App',
- 'Artisan' => 'Illuminate\Support\Facades\Artisan',
- 'Auth' => 'Illuminate\Support\Facades\Auth',
- 'Blade' => 'Illuminate\Support\Facades\Blade',
- 'Bus' => 'Illuminate\Support\Facades\Bus',
- 'Cache' => 'Illuminate\Support\Facades\Cache',
- 'Config' => 'Illuminate\Support\Facades\Config',
- 'Cookie' => 'Illuminate\Support\Facades\Cookie',
- 'Crypt' => 'Illuminate\Support\Facades\Crypt',
- 'DB' => 'Illuminate\Support\Facades\DB',
- 'Eloquent' => 'Illuminate\Database\Eloquent\Model',
- 'Event' => 'Illuminate\Support\Facades\Event',
- 'File' => 'Illuminate\Support\Facades\File',
- 'Hash' => 'Illuminate\Support\Facades\Hash',
- 'Input' => 'Illuminate\Support\Facades\Input',
+ 'App' => 'Illuminate\Support\Facades\App',
+ 'Artisan' => 'Illuminate\Support\Facades\Artisan',
+ 'Auth' => 'Illuminate\Support\Facades\Auth',
+ 'Blade' => 'Illuminate\Support\Facades\Blade',
+ 'Bus' => 'Illuminate\Support\Facades\Bus',
+ 'Cache' => 'Illuminate\Support\Facades\Cache',
+ 'Config' => 'Illuminate\Support\Facades\Config',
+ 'Cookie' => 'Illuminate\Support\Facades\Cookie',
+ 'Crypt' => 'Illuminate\Support\Facades\Crypt',
+ 'DB' => 'Illuminate\Support\Facades\DB',
+ 'Eloquent' => 'Illuminate\Database\Eloquent\Model',
+ 'Event' => 'Illuminate\Support\Facades\Event',
+ 'File' => 'Illuminate\Support\Facades\File',
+ 'Hash' => 'Illuminate\Support\Facades\Hash',
+ 'Input' => 'Illuminate\Support\Facades\Input',
'Inspiring' => 'Illuminate\Foundation\Inspiring',
- 'Lang' => 'Illuminate\Support\Facades\Lang',
- 'Log' => 'Illuminate\Support\Facades\Log',
- 'Mail' => 'Illuminate\Support\Facades\Mail',
- 'Password' => 'Illuminate\Support\Facades\Password',
- 'Queue' => 'Illuminate\Support\Facades\Queue',
- 'Redirect' => 'Illuminate\Support\Facades\Redirect',
- 'Redis' => 'Illuminate\Support\Facades\Redis',
- 'Request' => 'Illuminate\Support\Facades\Request',
- 'Response' => 'Illuminate\Support\Facades\Response',
- 'Route' => 'Illuminate\Support\Facades\Route',
- 'Schema' => 'Illuminate\Support\Facades\Schema',
- 'Session' => 'Illuminate\Support\Facades\Session',
- 'Storage' => 'Illuminate\Support\Facades\Storage',
- 'URL' => 'Illuminate\Support\Facades\URL',
+ 'Lang' => 'Illuminate\Support\Facades\Lang',
+ 'Log' => 'Illuminate\Support\Facades\Log',
+ 'Mail' => 'Illuminate\Support\Facades\Mail',
+ 'Password' => 'Illuminate\Support\Facades\Password',
+ 'Queue' => 'Illuminate\Support\Facades\Queue',
+ 'Redirect' => 'Illuminate\Support\Facades\Redirect',
+ 'Redis' => 'Illuminate\Support\Facades\Redis',
+ 'Request' => 'Illuminate\Support\Facades\Request',
+ 'Response' => 'Illuminate\Support\Facades\Response',
+ 'Route' => 'Illuminate\Support\Facades\Route',
+ 'Schema' => 'Illuminate\Support\Facades\Schema',
+ 'Session' => 'Illuminate\Support\Facades\Session',
+ 'Storage' => 'Illuminate\Support\Facades\Storage',
+ 'URL' => 'Illuminate\Support\Facades\URL',
'Validator' => 'Illuminate\Support\Facades\Validator',
- 'View' => 'Illuminate\Support\Facades\View',
- 'Form' =>'Illuminate\Html\FormFacade',
- 'HTML' => 'Illuminate\Html\HtmlFacade',
+ 'View' => 'Illuminate\Support\Facades\View',
+ 'Form' => 'Illuminate\Html\FormFacade',
+ 'HTML' => 'Illuminate\Html\HtmlFacade',
"phone" => "The :attribute field contains an invalid number.",
'Bugsnag' => 'Bugsnag\BugsnagLaravel\BugsnagFacade',
-
-
-
+ 'PDF' => 'Vsmoraes\Pdf\PdfFacade',
+ 'Gravatar' => 'Thomaswelton\LaravelGravatar\Facades\Gravatar',
],
diff --git a/code/config/auth.php b/code/code/config/auth.php
similarity index 99%
rename from code/config/auth.php
rename to code/code/config/auth.php
index 5b436aa4f..3f6115281 100644
--- a/code/config/auth.php
+++ b/code/code/config/auth.php
@@ -13,7 +13,7 @@ return [
|
| Supported: "database", "eloquent"
|
- */
+ */
'driver' => 'eloquent',
@@ -26,7 +26,7 @@ return [
| Eloquent model should be used to retrieve your users. Of course, it
| is often just the "User" model but you may use whatever you like.
|
- */
+ */
'model' => 'App\User',
@@ -39,7 +39,7 @@ return [
| table should be used to retrieve your users. We have chosen a basic
| default value but you may easily change it to any table you like.
|
- */
+ */
'table' => 'users',
@@ -56,7 +56,7 @@ return [
| considered valid. This security feature keeps tokens short-lived so
| they have less time to be guessed. You may change this as needed.
|
- */
+ */
'password' => [
'email' => 'emails.password',
diff --git a/code/code/config/bugsnag.php b/code/code/config/bugsnag.php
new file mode 100644
index 000000000..3ac43c142
--- /dev/null
+++ b/code/code/config/bugsnag.php
@@ -0,0 +1,5 @@
+ 'f27b54f858d9bff115b84ae438876380'
+// );
\ No newline at end of file
diff --git a/code/config/cache.php b/code/code/config/cache.php
similarity index 100%
rename from code/config/cache.php
rename to code/code/config/cache.php
diff --git a/code/config/compile.php b/code/code/config/compile.php
similarity index 100%
rename from code/config/compile.php
rename to code/code/config/compile.php
diff --git a/code/config/database.php b/code/code/config/database.php
similarity index 75%
rename from code/config/database.php
rename to code/code/config/database.php
index ecebb9b3a..2f59c527b 100644
--- a/code/config/database.php
+++ b/code/code/config/database.php
@@ -11,7 +11,7 @@ return [
| stdClass object; however, you may desire to retrieve records in an
| array format for simplicity. Here you can tweak the fetch style.
|
- */
+ */
'fetch' => PDO::FETCH_CLASS,
@@ -24,9 +24,9 @@ return [
| to use as your default connection for all database work. Of course
| you may use many connections at once using the Database library.
|
- */
+ */
- 'default' => '',
+ 'default' => '%default%',
/*
|--------------------------------------------------------------------------
@@ -42,46 +42,46 @@ return [
| so make sure you have the driver for your particular database of
| choice installed on your machine before you begin development.
|
- */
+ */
'connections' => [
'sqlite' => [
- 'driver' => 'sqlite',
- 'database' => storage_path().'/database.sqlite',
- 'prefix' => '',
+ 'driver' => 'sqlite',
+ 'database' => storage_path() . '/database.sqlite',
+ 'prefix' => '',
],
'mysql' => [
- 'driver' => 'mysql',
- 'host' => 'localhost',
- 'database' => '',
- 'username' => '',
- 'password' => '',
- 'charset' => 'utf8',
+ 'driver' => 'mysql',
+ 'host' => '%host%',
+ 'database' => '%database%',
+ 'username' => '%username%',
+ 'password' => '%password%',
+ 'charset' => 'utf8',
'collation' => 'utf8_unicode_ci',
- 'prefix' => '',
- 'strict' => false,
+ 'prefix' => '',
+ 'strict' => false,
],
'pgsql' => [
- 'driver' => 'pgsql',
- 'host' => env('DB_HOST', 'localhost'),
+ 'driver' => 'pgsql',
+ 'host' => env('DB_HOST', 'localhost'),
'database' => env('DB_DATABASE', 'forge'),
'username' => env('DB_USERNAME', 'forge'),
'password' => env('DB_PASSWORD', ''),
- 'charset' => 'utf8',
- 'prefix' => '',
- 'schema' => 'public',
+ 'charset' => 'utf8',
+ 'prefix' => '',
+ 'schema' => 'public',
],
'sqlsrv' => [
- 'driver' => 'sqlsrv',
- 'host' => env('DB_HOST', 'localhost'),
+ 'driver' => 'sqlsrv',
+ 'host' => env('DB_HOST', 'localhost'),
'database' => env('DB_DATABASE', 'forge'),
'username' => env('DB_USERNAME', 'forge'),
'password' => env('DB_PASSWORD', ''),
- 'prefix' => '',
+ 'prefix' => '',
],
],
@@ -95,10 +95,22 @@ return [
| your application. Using this information, we can determine which of
| the migrations on disk haven't actually been run in the database.
|
- */
+ */
'migrations' => 'migrations',
+ /*
+ |--------------------------------------------------------------------------
+ | Installer value
+ |--------------------------------------------------------------------------
+ |
+ | This key is used for the installer to know wether this project is
+ | installed or not.
+ |
+ */
+
+ 'install' => '%0%',
+
/*
|--------------------------------------------------------------------------
| Redis Databases
@@ -108,15 +120,15 @@ return [
| provides a richer set of commands than a typical key-value systems
| such as APC or Memcached. Laravel makes it easy to dig right in.
|
- */
+ */
'redis' => [
'cluster' => false,
'default' => [
- 'host' => '127.0.0.1',
- 'port' => 6379,
+ 'host' => '127.0.0.1',
+ 'port' => 6379,
'database' => 0,
],
diff --git a/code/config/filesystems.php b/code/code/config/filesystems.php
similarity index 100%
rename from code/config/filesystems.php
rename to code/code/config/filesystems.php
diff --git a/code/code/config/gravatar.php b/code/code/config/gravatar.php
new file mode 100644
index 000000000..1d5b318ae
--- /dev/null
+++ b/code/code/config/gravatar.php
@@ -0,0 +1,23 @@
+ 80,
+
+ // --- The default avatar to display if we have no results
+ // (bool) false
+ // (string) 404
+ // (string) mm: (mystery-man) a simple, cartoon-style silhouetted outline of a person (does not vary by email hash).
+ // (string) identicon: a geometric pattern based on an email hash.
+ // (string) monsterid: a generated 'monster' with different colors, faces, etc.
+ // (string) wavatar: generated faces with differing features and backgrounds.
+ // (string) retro: awesome generated, 8-bit arcade-style pixelated faces.
+ 'default' => 'identicon',
+
+ // --- Set the type of avatars we allow to show
+ // - g: suitable for display on all websites with any audience type.
+ // - pg: may contain rude gestures, provocatively dressed individuals, the lesser swear words, or mild violence.
+ // - r: may contain such things as harsh profanity, intense violence, nudity, or hard drug use.
+ // - x: may contain hardcore sexual imagery or extremely disturbing violence.
+ 'maxRating' => 'g'
+);
diff --git a/code/config/mail.php b/code/code/config/mail.php
similarity index 97%
rename from code/config/mail.php
rename to code/code/config/mail.php
index 22454556b..9ce48192e 100644
--- a/code/config/mail.php
+++ b/code/code/config/mail.php
@@ -13,7 +13,7 @@ return [
|
| Supported: "smtp", "mail", "sendmail", "mailgun", "mandrill", "log"
|
- */
+ */
'driver' => 'smtp',
@@ -26,9 +26,9 @@ return [
| applications. A default option is provided that is compatible with
| the Mailgun mail service which will provide reliable deliveries.
|
- */
+ */
- 'host' => 'smtp.mailgun.com',
+ 'host' => '',
/*
|--------------------------------------------------------------------------
@@ -39,9 +39,9 @@ return [
| users of the application. Like the host we have set this value to
| stay compatible with the Mailgun e-mail application by default.
|
- */
+ */
- 'port' => 465,
+ 'port' => '',
/*
|--------------------------------------------------------------------------
@@ -52,7 +52,7 @@ return [
| the same address. Here, you may specify a name and address that is
| used globally for all e-mails that are sent by your application.
|
- */
+ */
'from' => ['address' => '', 'name' => ''],
@@ -65,9 +65,9 @@ return [
| the application send e-mail messages. A sensible default using the
| transport layer security protocol should provide great security.
|
- */
+ */
- 'encryption' => 'tls',
+ 'encryption' => '',
/*
|--------------------------------------------------------------------------
@@ -78,7 +78,7 @@ return [
| set it here. This will get used to authenticate with your server on
| connection. You may also set the "password" value below this one.
|
- */
+ */
'username' => '',
@@ -91,7 +91,7 @@ return [
| messages from your application. This will be given to the server on
| connection so that the application will be able to send messages.
|
- */
+ */
'password' => '',
@@ -104,7 +104,7 @@ return [
| the path to where Sendmail lives on this server. A default path has
| been provided here, which will work well on most of your systems.
|
- */
+ */
'sendmail' => '',
@@ -117,7 +117,7 @@ return [
| web and will instead be written to your application's logs files so
| you may inspect the message. This is great for local development.
|
- */
+ */
'pretend' => false,
diff --git a/code/config/queue.php b/code/code/config/queue.php
similarity index 100%
rename from code/config/queue.php
rename to code/code/config/queue.php
diff --git a/code/config/services.php b/code/code/config/services.php
similarity index 100%
rename from code/config/services.php
rename to code/code/config/services.php
diff --git a/code/config/session.php b/code/code/config/session.php
similarity index 100%
rename from code/config/session.php
rename to code/code/config/session.php
diff --git a/code/config/view.php b/code/code/config/view.php
similarity index 100%
rename from code/config/view.php
rename to code/code/config/view.php
diff --git a/code/database/.gitignore b/code/code/database/.gitignore
similarity index 100%
rename from code/database/.gitignore
rename to code/code/database/.gitignore
diff --git a/code/database/migrations/.gitkeep b/code/code/database/migrations/.gitkeep
similarity index 100%
rename from code/database/migrations/.gitkeep
rename to code/code/database/migrations/.gitkeep
diff --git a/code/code/database/migrations/2014_10_12_000000_create_users_table.php b/code/code/database/migrations/2014_10_12_000000_create_users_table.php
new file mode 100644
index 000000000..7d20bc83f
--- /dev/null
+++ b/code/code/database/migrations/2014_10_12_000000_create_users_table.php
@@ -0,0 +1,54 @@
+increments('id');
+ $table->string('user_name');
+ $table->string('first_name');
+ $table->string('last_name');
+ $table->boolean('gender');
+ $table->string('email')->unique();
+ $table->boolean('ban');
+ $table->string('password', 60);
+ $table->integer('active');
+ $table->string('ext');
+ $table->string('phone_number');
+ $table->string('mobile');
+ $table->string('agent_sign');
+ $table->string('account_type');
+ $table->string('account_status');
+ $table->string('assign_group');
+ $table->string('primary_dpt');
+ $table->string('agent_tzone');
+ $table->string('daylight_save');
+ $table->string('limit_access');
+ $table->string('directory_listing');
+ $table->string('vocation_mode');
+ $table->string('company');
+ $table->string('role');
+ $table->string('profile_pic');
+ $table->rememberToken();
+ $table->timestamps();
+ });
+ }
+
+ /**
+ * Reverse the migrations.
+ *
+ * @return void
+ */
+ public function down() {
+ Schema::drop('users');
+ }
+
+}
diff --git a/code/database/migrations/2014_10_12_100000_create_password_resets_table.php b/code/code/database/migrations/2014_10_12_100000_create_password_resets_table.php
similarity index 100%
rename from code/database/migrations/2014_10_12_100000_create_password_resets_table.php
rename to code/code/database/migrations/2014_10_12_100000_create_password_resets_table.php
diff --git a/code/database/migrations/2015_03_24_061445_create_forms_table.php b/code/code/database/migrations/2015_05_06_073651_create_footers_table.php
similarity index 54%
rename from code/database/migrations/2015_03_24_061445_create_forms_table.php
rename to code/code/database/migrations/2015_05_06_073651_create_footers_table.php
index bccf745cb..7d165c031 100644
--- a/code/database/migrations/2015_03_24_061445_create_forms_table.php
+++ b/code/code/database/migrations/2015_05_06_073651_create_footers_table.php
@@ -1,20 +1,20 @@
increments('id');
+ $table->string('title');
+ $table->string('footer');
$table->timestamps();
});
}
@@ -24,9 +24,8 @@ class CreateFormsTable extends Migration {
*
* @return void
*/
- public function down()
- {
- Schema::drop('forms');
+ public function down() {
+ Schema::drop('footer');
}
}
diff --git a/code/database/migrations/2015_03_23_050755_create_banlists_table.php b/code/code/database/migrations/2015_05_06_082026_create_footer2s_table.php
similarity index 54%
rename from code/database/migrations/2015_03_23_050755_create_banlists_table.php
rename to code/code/database/migrations/2015_05_06_082026_create_footer2s_table.php
index 08a346573..794cf9eff 100644
--- a/code/database/migrations/2015_03_23_050755_create_banlists_table.php
+++ b/code/code/database/migrations/2015_05_06_082026_create_footer2s_table.php
@@ -1,20 +1,20 @@
increments('id');
+ $table->string('title');
+ $table->string('footer');
$table->timestamps();
});
}
@@ -24,9 +24,8 @@ class CreateBanlistsTable extends Migration {
*
* @return void
*/
- public function down()
- {
- Schema::drop('banlists');
+ public function down() {
+ Schema::drop('footer2');
}
}
diff --git a/code/code/database/migrations/2015_05_06_092125_create_footer3s_table.php b/code/code/database/migrations/2015_05_06_092125_create_footer3s_table.php
new file mode 100644
index 000000000..99ddb5573
--- /dev/null
+++ b/code/code/database/migrations/2015_05_06_092125_create_footer3s_table.php
@@ -0,0 +1,31 @@
+increments('id');
+ $table->string('title');
+ $table->string('footer');
+ $table->timestamps();
+ });
+ }
+
+ /**
+ * Reverse the migrations.
+ *
+ * @return void
+ */
+ public function down() {
+ Schema::drop('footer3');
+ }
+
+}
diff --git a/code/code/database/migrations/2015_05_06_092132_create_footer4s_table.php b/code/code/database/migrations/2015_05_06_092132_create_footer4s_table.php
new file mode 100644
index 000000000..32cea4c0b
--- /dev/null
+++ b/code/code/database/migrations/2015_05_06_092132_create_footer4s_table.php
@@ -0,0 +1,31 @@
+increments('id');
+ $table->string('title');
+ $table->string('footer');
+ $table->timestamps();
+ });
+ }
+
+ /**
+ * Reverse the migrations.
+ *
+ * @return void
+ */
+ public function down() {
+ Schema::drop('footer4');
+ }
+
+}
diff --git a/code/code/database/migrations/2015_05_06_103949_create_timezone_table.php b/code/code/database/migrations/2015_05_06_103949_create_timezone_table.php
new file mode 100644
index 000000000..54fb95494
--- /dev/null
+++ b/code/code/database/migrations/2015_05_06_103949_create_timezone_table.php
@@ -0,0 +1,30 @@
+increments('id');
+ $table->string('name');
+ $table->string('location');
+ });
+ }
+
+ /**
+ * Reverse the migrations.
+ *
+ * @return void
+ */
+ public function down() {
+ Schema::drop('timezone');
+ }
+
+}
diff --git a/code/code/database/migrations/2015_05_06_105005_create_ticket_thread_table.php b/code/code/database/migrations/2015_05_06_105005_create_ticket_thread_table.php
new file mode 100644
index 000000000..f74c5a8b3
--- /dev/null
+++ b/code/code/database/migrations/2015_05_06_105005_create_ticket_thread_table.php
@@ -0,0 +1,40 @@
+increments('id');
+ $table->integer('pid');
+ $table->integer('ticket_id');
+ $table->integer('staff_id');
+ $table->integer('user_id');
+ $table->string('poster');
+ $table->string('source');
+ $table->boolean('is_internal');
+ $table->string('title');
+ $table->mediumText('body');
+ $table->string('format');
+ $table->string('ip_address');
+ $table->timestamps();
+ });
+ }
+
+ /**
+ * Reverse the migrations.
+ *
+ * @return void
+ */
+ public function down() {
+ Schema::drop('ticket_thread');
+ }
+
+}
diff --git a/code/code/database/migrations/2015_05_06_110518_create_ticket_status_table.php b/code/code/database/migrations/2015_05_06_110518_create_ticket_status_table.php
new file mode 100644
index 000000000..38b6571f1
--- /dev/null
+++ b/code/code/database/migrations/2015_05_06_110518_create_ticket_status_table.php
@@ -0,0 +1,36 @@
+increments('id');
+ $table->string('name');
+ $table->string('state');
+ $table->integer('mode');
+ $table->string('message');
+ $table->integer('flags');
+ $table->integer('sort');
+ $table->string('properties');
+ $table->timestamps();
+ });
+ }
+
+ /**
+ * Reverse the migrations.
+ *
+ * @return void
+ */
+ public function down() {
+ Schema::drop('ticket_status');
+ }
+
+}
diff --git a/code/code/database/migrations/2015_05_06_112140_create_ticket_settings_table.php b/code/code/database/migrations/2015_05_06_112140_create_ticket_settings_table.php
new file mode 100644
index 000000000..826c2ef88
--- /dev/null
+++ b/code/code/database/migrations/2015_05_06_112140_create_ticket_settings_table.php
@@ -0,0 +1,46 @@
+increments('id');
+ $table->string('num_format');
+ $table->string('num_sequence');
+ $table->string('priority');
+ $table->string('sla');
+ $table->string('help_topic');
+ $table->string('max_open_ticket');
+ $table->string('collision_avoid');
+ $table->string('captcha');
+ $table->boolean('status');
+ $table->boolean('claim_response');
+ $table->boolean('assigned_ticket');
+ $table->boolean('answered_ticket');
+ $table->boolean('agent_mask');
+ $table->boolean('html');
+ $table->boolean('client_update');
+ $table->boolean('max_file_size');
+ $table->timestamps();
+ });
+
+ }
+
+ /**
+ * Reverse the migrations.
+ *
+ * @return void
+ */
+ public function down() {
+ Schema::drop('ticket_settings');
+ }
+
+}
diff --git a/code/code/database/migrations/2015_05_06_114327_create_ticket_priority_table.php b/code/code/database/migrations/2015_05_06_114327_create_ticket_priority_table.php
new file mode 100644
index 000000000..452bb3192
--- /dev/null
+++ b/code/code/database/migrations/2015_05_06_114327_create_ticket_priority_table.php
@@ -0,0 +1,33 @@
+increments('priority_id');
+ $table->string('priority');
+ $table->string('priority_desc');
+ $table->string('priority_color');
+ $table->boolean('priority_urgency');
+ $table->boolean('ispublic');
+ });
+ }
+
+ /**
+ * Reverse the migrations.
+ *
+ * @return void
+ */
+ public function down() {
+ Schema::drop('ticket_priority');
+ }
+
+}
diff --git a/code/code/database/migrations/2015_05_06_115133_create_ticket_collaborator_table.php b/code/code/database/migrations/2015_05_06_115133_create_ticket_collaborator_table.php
new file mode 100644
index 000000000..e09bdaf93
--- /dev/null
+++ b/code/code/database/migrations/2015_05_06_115133_create_ticket_collaborator_table.php
@@ -0,0 +1,33 @@
+increments('id');
+ $table->boolean('isactive');
+ $table->integer('ticket_id');
+ $table->integer('user_id');
+ $table->string('role');
+ $table->timestamps();
+ });
+ }
+
+ /**
+ * Reverse the migrations.
+ *
+ * @return void
+ */
+ public function down() {
+ Schema::drop('ticket_collaborator');
+ }
+
+}
diff --git a/code/code/database/migrations/2015_05_06_115733_create_ticket_attachment_table.php b/code/code/database/migrations/2015_05_06_115733_create_ticket_attachment_table.php
new file mode 100644
index 000000000..86771579f
--- /dev/null
+++ b/code/code/database/migrations/2015_05_06_115733_create_ticket_attachment_table.php
@@ -0,0 +1,36 @@
+increments('id');
+ $table->string('name');
+ $table->integer('thread_id');
+ $table->string('size');
+ $table->string('type');
+ $table->string('poster');
+ $table->timestamps();
+ });
+
+ \DB::statement("ALTER TABLE `ticket_attachment` ADD `file` MEDIUMBLOB");
+ }
+
+ /**
+ * Reverse the migrations.
+ *
+ * @return void
+ */
+ public function down() {
+ Schema::drop('ticket_attachment');
+ }
+
+}
diff --git a/code/code/database/migrations/2015_05_06_120651_create_ticket_table.php b/code/code/database/migrations/2015_05_06_120651_create_ticket_table.php
new file mode 100644
index 000000000..01052b048
--- /dev/null
+++ b/code/code/database/migrations/2015_05_06_120651_create_ticket_table.php
@@ -0,0 +1,58 @@
+increments('id');
+ $table->string('ticket_number');
+ $table->integer('user_id');
+ $table->integer('dept_id');
+ $table->integer('sla_id');
+ $table->integer('staff_id');
+ $table->integer('team_id');
+ $table->integer('priority_id');
+ $table->integer('sla');
+ $table->integer('help_topic_id');
+ $table->integer('status');
+ $table->integer('flags');
+ $table->integer('ip_address');
+ $table->integer('assigned_to');
+ $table->integer('lock_by');
+ $table->integer('lock_at');
+ $table->integer('source');
+ $table->integer('isoverdue');
+ $table->date('duedate');
+ $table->integer('reopened');
+ $table->integer('isanswered');
+ $table->integer('html');
+ $table->integer('is_deleted');
+ $table->integer('closed');
+ $table->string('last_message');
+ $table->string('last_response');
+ $table->dateTime('reopened_at');
+ $table->dateTime('closed_at');
+ $table->dateTime('last_message_at');
+ $table->dateTime('last_response_at');
+ $table->timestamps();
+ });
+ }
+
+ /**
+ * Reverse the migrations.
+ *
+ * @return void
+ */
+ public function down() {
+ Schema::drop('tickets');
+ }
+
+}
diff --git a/code/code/database/migrations/2015_05_06_122431_create_template_table.php b/code/code/database/migrations/2015_05_06_122431_create_template_table.php
new file mode 100644
index 000000000..1ee0bca9e
--- /dev/null
+++ b/code/code/database/migrations/2015_05_06_122431_create_template_table.php
@@ -0,0 +1,34 @@
+increments('id');
+ $table->string('name');
+ $table->boolean('status');
+ $table->string('template_set_to_clone');
+ $table->string('language');
+ $table->string('internal_note');
+ $table->timestamps();
+ });
+ }
+
+ /**
+ * Reverse the migrations.
+ *
+ * @return void
+ */
+ public function down() {
+ Schema::drop('template');
+ }
+
+}
diff --git a/code/code/database/migrations/2015_05_06_122830_create_team_assign_agent_table.php b/code/code/database/migrations/2015_05_06_122830_create_team_assign_agent_table.php
new file mode 100644
index 000000000..53d3f3384
--- /dev/null
+++ b/code/code/database/migrations/2015_05_06_122830_create_team_assign_agent_table.php
@@ -0,0 +1,31 @@
+increments('id');
+ $table->string('team_id');
+ $table->string('agent_id');
+ $table->timestamps();
+ });
+ }
+
+ /**
+ * Reverse the migrations.
+ *
+ * @return void
+ */
+ public function down() {
+ Schema::drop('team_assign_agent');
+ }
+
+}
diff --git a/code/code/database/migrations/2015_05_06_123154_create_team_table.php b/code/code/database/migrations/2015_05_06_123154_create_team_table.php
new file mode 100644
index 000000000..fdc21323e
--- /dev/null
+++ b/code/code/database/migrations/2015_05_06_123154_create_team_table.php
@@ -0,0 +1,34 @@
+increments('id');
+ $table->string('name');
+ $table->boolean('status');
+ $table->string('team_lead');
+ $table->boolean('assign_alert');
+ $table->string('admin_notes');
+ $table->timestamps();
+ });
+ }
+
+ /**
+ * Reverse the migrations.
+ *
+ * @return void
+ */
+ public function down() {
+ Schema::drop('teams');
+ }
+
+}
diff --git a/code/code/database/migrations/2015_05_06_123624_create_system_table.php b/code/code/database/migrations/2015_05_06_123624_create_system_table.php
new file mode 100644
index 000000000..c9470f710
--- /dev/null
+++ b/code/code/database/migrations/2015_05_06_123624_create_system_table.php
@@ -0,0 +1,43 @@
+increments('id');
+ $table->boolean('status');
+ $table->string('url');
+ $table->string('name');
+ $table->string('department');
+ $table->string('page_size');
+ $table->string('log_level');
+ $table->string('purge_log');
+ $table->string('name_format');
+ $table->string('time_farmat');
+ $table->string('date_format');
+ $table->string('date_time_format');
+ $table->string('day_date_time');
+ $table->string('time_zone');
+ $table->string('content');
+ $table->timestamps();
+ });
+ }
+
+ /**
+ * Reverse the migrations.
+ *
+ * @return void
+ */
+ public function down() {
+ Schema::drop('system');
+ }
+
+}
diff --git a/code/code/database/migrations/2015_05_06_123928_create_sla_table.php b/code/code/database/migrations/2015_05_06_123928_create_sla_table.php
new file mode 100644
index 000000000..e7680f82e
--- /dev/null
+++ b/code/code/database/migrations/2015_05_06_123928_create_sla_table.php
@@ -0,0 +1,36 @@
+increments('id');
+ $table->string('name');
+ $table->string('grace_period');
+ $table->string('admin_note');
+ $table->boolean('status');
+ $table->boolean('transient');
+ $table->boolean('ticket_overdue');
+ $table->timestamps();
+ });
+
+ }
+
+ /**
+ * Reverse the migrations.
+ *
+ * @return void
+ */
+ public function down() {
+ Schema::drop('sla_plan');
+ }
+
+}
diff --git a/code/code/database/migrations/2015_05_06_125328_create_organization_table.php b/code/code/database/migrations/2015_05_06_125328_create_organization_table.php
new file mode 100644
index 000000000..595a5bdce
--- /dev/null
+++ b/code/code/database/migrations/2015_05_06_125328_create_organization_table.php
@@ -0,0 +1,34 @@
+increments('id');
+ $table->string('name');
+ $table->string('phone');
+ $table->string('website');
+ $table->string('address');
+ $table->string('internal_notes');
+ $table->timestamps();
+ });
+ }
+
+ /**
+ * Reverse the migrations.
+ *
+ * @return void
+ */
+ public function down() {
+ Schema::drop('organization');
+ }
+
+}
diff --git a/code/code/database/migrations/2015_05_06_125817_create_mailbox_protocol_table.php b/code/code/database/migrations/2015_05_06_125817_create_mailbox_protocol_table.php
new file mode 100644
index 000000000..8e0f9574c
--- /dev/null
+++ b/code/code/database/migrations/2015_05_06_125817_create_mailbox_protocol_table.php
@@ -0,0 +1,29 @@
+increments('id');
+ $table->string('name');
+ });
+ }
+
+ /**
+ * Reverse the migrations.
+ *
+ * @return void
+ */
+ public function down() {
+ Schema::drop('mailbox_protocol');
+ }
+
+}
diff --git a/code/database/migrations/2015_04_07_073117_create_logs_table.php b/code/code/database/migrations/2015_05_06_130627_create_log_table.php
similarity index 61%
rename from code/database/migrations/2015_04_07_073117_create_logs_table.php
rename to code/code/database/migrations/2015_05_06_130627_create_log_table.php
index 3538ac4b6..6dabba85d 100644
--- a/code/database/migrations/2015_04_07_073117_create_logs_table.php
+++ b/code/code/database/migrations/2015_05_06_130627_create_log_table.php
@@ -1,21 +1,19 @@
increments('id');
- $table->timestamps();
+ $table->string('level');
});
}
@@ -24,8 +22,7 @@ class CreateLogsTable extends Migration {
*
* @return void
*/
- public function down()
- {
+ public function down() {
Schema::drop('logs');
}
diff --git a/code/database/migrations/2015_03_23_083455_create_languages_table.php b/code/code/database/migrations/2015_05_06_131238_create_languages_table.php
similarity index 66%
rename from code/database/migrations/2015_03_23_083455_create_languages_table.php
rename to code/code/database/migrations/2015_05_06_131238_create_languages_table.php
index 38e0bd8f8..0c16e58a8 100644
--- a/code/database/migrations/2015_03_23_083455_create_languages_table.php
+++ b/code/code/database/migrations/2015_05_06_131238_create_languages_table.php
@@ -1,7 +1,7 @@
increments('id');
- $table->timestamps();
+ $table->string('name');
+ $table->string('locale');
});
}
@@ -24,8 +23,7 @@ class CreateLanguagesTable extends Migration {
*
* @return void
*/
- public function down()
- {
+ public function down() {
Schema::drop('languages');
}
diff --git a/code/code/database/migrations/2015_05_06_132844_create_help_topic_table.php b/code/code/database/migrations/2015_05_06_132844_create_help_topic_table.php
new file mode 100644
index 000000000..ef4cf7d47
--- /dev/null
+++ b/code/code/database/migrations/2015_05_06_132844_create_help_topic_table.php
@@ -0,0 +1,43 @@
+increments('id');
+ $table->string('topic');
+ $table->string('parent_topic');
+ $table->string('custom_form');
+ $table->string('department');
+ $table->string('ticket_status');
+ $table->string('priority');
+ $table->string('sla_plan');
+ $table->string('thank_page');
+ $table->string('ticket_num_format');
+ $table->string('internal_notes');
+ $table->boolean('status');
+ $table->boolean('type');
+ $table->boolean('auto_assign');
+ $table->boolean('auto_response');
+ $table->timestamps();
+ });
+ }
+
+ /**
+ * Reverse the migrations.
+ *
+ * @return void
+ */
+ public function down() {
+ Schema::drop('help_topic');
+ }
+
+}
diff --git a/code/code/database/migrations/2015_05_06_133346_create_guest_note_table.php b/code/code/database/migrations/2015_05_06_133346_create_guest_note_table.php
new file mode 100644
index 000000000..69760924d
--- /dev/null
+++ b/code/code/database/migrations/2015_05_06_133346_create_guest_note_table.php
@@ -0,0 +1,30 @@
+increments('id');
+ $table->string('heading');
+ $table->string('content');
+ });
+ }
+
+ /**
+ * Reverse the migrations.
+ *
+ * @return void
+ */
+ public function down() {
+ Schema::drop('guest_note');
+ }
+
+}
diff --git a/code/code/database/migrations/2015_05_07_040647_create_group_assign_department_table.php b/code/code/database/migrations/2015_05_07_040647_create_group_assign_department_table.php
new file mode 100644
index 000000000..3fee92a92
--- /dev/null
+++ b/code/code/database/migrations/2015_05_07_040647_create_group_assign_department_table.php
@@ -0,0 +1,31 @@
+increments('id');
+ $table->integer('group_id');
+ $table->integer('department_id');
+ $table->timestamps();
+ });
+ }
+
+ /**
+ * Reverse the migrations.
+ *
+ * @return void
+ */
+ public function down() {
+ Schema::drop('group_assign_department');
+ }
+
+}
diff --git a/code/code/database/migrations/2015_05_07_040934_create_groups_table.php b/code/code/database/migrations/2015_05_07_040934_create_groups_table.php
new file mode 100644
index 000000000..7919323f4
--- /dev/null
+++ b/code/code/database/migrations/2015_05_07_040934_create_groups_table.php
@@ -0,0 +1,44 @@
+increments('id');
+ $table->string('name');
+ $table->boolean('group_status');
+ $table->boolean('can_create_ticket');
+ $table->boolean('can_edit_ticket');
+ $table->boolean('can_post_ticket');
+ $table->boolean('can_close_ticket');
+ $table->boolean('can_assign_ticket');
+ $table->boolean('can_trasfer_ticket');
+ $table->boolean('can_delete_ticket');
+ $table->boolean('can_ban_email');
+ $table->boolean('can_manage_canned');
+ $table->boolean('can_manage_faq');
+ $table->boolean('can_view_agent_stats');
+ $table->boolean('department_access');
+ $table->string('admin_notes');
+ $table->timestamps();
+ });
+ }
+
+ /**
+ * Reverse the migrations.
+ *
+ * @return void
+ */
+ public function down() {
+ Schema::drop('groups');
+ }
+
+}
diff --git a/code/code/database/migrations/2015_05_07_041448_create_form_value_table.php b/code/code/database/migrations/2015_05_07_041448_create_form_value_table.php
new file mode 100644
index 000000000..82911f729
--- /dev/null
+++ b/code/code/database/migrations/2015_05_07_041448_create_form_value_table.php
@@ -0,0 +1,31 @@
+increments('id');
+ $table->integer('form_detail_id');
+ $table->string('values');
+ $table->timestamps();
+ });
+ }
+
+ /**
+ * Reverse the migrations.
+ *
+ * @return void
+ */
+ public function down() {
+ Schema::drop('form_value');
+ }
+
+}
diff --git a/code/code/database/migrations/2015_05_07_041459_create_form_name_table.php b/code/code/database/migrations/2015_05_07_041459_create_form_name_table.php
new file mode 100644
index 000000000..fd6e4016f
--- /dev/null
+++ b/code/code/database/migrations/2015_05_07_041459_create_form_name_table.php
@@ -0,0 +1,32 @@
+increments('id');
+ $table->string('name');
+ $table->string('status');
+ $table->string('no_of_fields');
+ $table->timestamps();
+ });
+ }
+
+ /**
+ * Reverse the migrations.
+ *
+ * @return void
+ */
+ public function down() {
+ Schema::drop('form_name');
+ }
+
+}
diff --git a/code/database/migrations/2015_04_10_070455_create_form_details_table.php b/code/code/database/migrations/2015_05_07_041509_create_form_details_table.php
similarity index 63%
rename from code/database/migrations/2015_04_10_070455_create_form_details_table.php
rename to code/code/database/migrations/2015_05_07_041509_create_form_details_table.php
index 888e1a30e..fdc3b7794 100644
--- a/code/database/migrations/2015_04_10_070455_create_form_details_table.php
+++ b/code/code/database/migrations/2015_05_07_041509_create_form_details_table.php
@@ -1,7 +1,7 @@
increments('id');
+ $table->integer('form_name_id');
+ $table->string('label');
+ $table->string('type');
$table->timestamps();
});
}
@@ -24,8 +25,7 @@ class CreateFormDetailsTable extends Migration {
*
* @return void
*/
- public function down()
- {
+ public function down() {
Schema::drop('form_details');
}
diff --git a/code/code/database/migrations/2015_05_07_043529_create_emails_table.php b/code/code/database/migrations/2015_05_07_043529_create_emails_table.php
new file mode 100644
index 000000000..6298dba06
--- /dev/null
+++ b/code/code/database/migrations/2015_05_07_043529_create_emails_table.php
@@ -0,0 +1,52 @@
+increments('id');
+ $table->string('email_address');
+ $table->string('email_name');
+ $table->string('department');
+ $table->string('priority');
+ $table->string('help_topic');
+ $table->string('user_name');
+ $table->string('password');
+ $table->string('fetching_host');
+ $table->string('fetching_port');
+ $table->string('mailbox_protocol');
+ $table->string('imap_config');
+ $table->string('folder');
+ $table->string('sending_host');
+ $table->string('sending_port');
+ $table->string('internal_notes');
+ $table->boolean('auto_response');
+ $table->boolean('fetching_status');
+ $table->boolean('move_to_folder');
+ $table->boolean('delete_email');
+ $table->boolean('do_nothing');
+ $table->boolean('sending_status');
+ $table->boolean('authentication');
+ $table->boolean('header_spoofing');
+ $table->timestamps();
+ });
+ }
+
+ /**
+ * Reverse the migrations.
+ *
+ * @return void
+ */
+ public function down() {
+ Schema::drop('emails');
+ }
+
+}
diff --git a/code/code/database/migrations/2015_05_07_043904_create_email_table.php b/code/code/database/migrations/2015_05_07_043904_create_email_table.php
new file mode 100644
index 000000000..26ab44dbc
--- /dev/null
+++ b/code/code/database/migrations/2015_05_07_043904_create_email_table.php
@@ -0,0 +1,39 @@
+increments('id');
+ $table->string('template');
+ $table->string('sys_email');
+ $table->string('alert_email');
+ $table->string('admin_email');
+ $table->string('mta');
+ $table->boolean('email_fetching');
+ $table->boolean('strip');
+ $table->boolean('separator');
+ $table->boolean('all_emails');
+ $table->boolean('email_collaborator');
+ $table->boolean('attachment');
+ $table->timestamps();
+ });
+ }
+
+ /**
+ * Reverse the migrations.
+ *
+ * @return void
+ */
+ public function down() {
+ Schema::drop('email');
+ }
+}
diff --git a/code/code/database/migrations/2015_05_07_044229_create_department_table.php b/code/code/database/migrations/2015_05_07_044229_create_department_table.php
new file mode 100644
index 000000000..d387ee4f4
--- /dev/null
+++ b/code/code/database/migrations/2015_05_07_044229_create_department_table.php
@@ -0,0 +1,42 @@
+increments('id');
+ $table->string('name');
+ $table->string('type');
+ $table->string('sla');
+ $table->string('manager');
+ $table->string('ticket_assignment');
+ $table->string('outgoing_email');
+ $table->string('template_set');
+ $table->string('auto_ticket_response');
+ $table->string('auto_message_response');
+ $table->string('auto_response_email');
+ $table->string('recipient');
+ $table->string('group_access');
+ $table->string('department_sign');
+ $table->timestamps();
+ });
+ }
+
+ /**
+ * Reverse the migrations.
+ *
+ * @return void
+ */
+ public function down() {
+ Schema::drop('department');
+ }
+
+}
diff --git a/code/database/migrations/2015_04_01_061538_create_mailbox_protocols_table.php b/code/code/database/migrations/2015_05_07_044521_create_date_time_format_table.php
similarity index 52%
rename from code/database/migrations/2015_04_01_061538_create_mailbox_protocols_table.php
rename to code/code/database/migrations/2015_05_07_044521_create_date_time_format_table.php
index 4c72ee2b5..f55c96e10 100644
--- a/code/database/migrations/2015_04_01_061538_create_mailbox_protocols_table.php
+++ b/code/code/database/migrations/2015_05_07_044521_create_date_time_format_table.php
@@ -1,21 +1,19 @@
increments('id');
- $table->timestamps();
+ $table->string('format');
});
}
@@ -24,9 +22,9 @@ class CreateMailboxProtocolsTable extends Migration {
*
* @return void
*/
- public function down()
- {
- Schema::drop('mailbox_protocols');
+ public function down() {
+ Schema::create('date_time_format');
+
}
}
diff --git a/code/code/database/migrations/2015_05_07_045158_create_date_format_table.php b/code/code/database/migrations/2015_05_07_045158_create_date_format_table.php
new file mode 100644
index 000000000..714038b36
--- /dev/null
+++ b/code/code/database/migrations/2015_05_07_045158_create_date_format_table.php
@@ -0,0 +1,29 @@
+increments('id');
+ $table->string('format');
+ });
+ }
+
+ /**
+ * Reverse the migrations.
+ *
+ * @return void
+ */
+ public function down() {
+ Schema::drop('date_format');
+ }
+
+}
diff --git a/code/code/database/migrations/2015_05_07_045611_create_company_table.php b/code/code/database/migrations/2015_05_07_045611_create_company_table.php
new file mode 100644
index 000000000..956632907
--- /dev/null
+++ b/code/code/database/migrations/2015_05_07_045611_create_company_table.php
@@ -0,0 +1,38 @@
+increments('id');
+ $table->string('company_name');
+ $table->string('website');
+ $table->string('phone');
+ $table->string('address');
+ $table->string('landing_page');
+ $table->string('offline_page');
+ $table->string('thank_page');
+ $table->string('logo');
+ $table->string('use_logo');
+ $table->timestamps();
+ });
+ }
+
+ /**
+ * Reverse the migrations.
+ *
+ * @return void
+ */
+ public function down() {
+ Schema::drop('company');
+ }
+
+}
diff --git a/code/code/database/migrations/2015_05_07_052638_create_banlist_table.php b/code/code/database/migrations/2015_05_07_052638_create_banlist_table.php
new file mode 100644
index 000000000..9aa21d9eb
--- /dev/null
+++ b/code/code/database/migrations/2015_05_07_052638_create_banlist_table.php
@@ -0,0 +1,32 @@
+increments('id');
+ $table->boolean('ban_status');
+ $table->string('email_address');
+ $table->string('internal_notes');
+ $table->timestamps();
+ });
+ }
+
+ /**
+ * Reverse the migrations.
+ *
+ * @return void
+ */
+ public function down() {
+ Schema::drop('banlist');
+ }
+
+}
diff --git a/code/code/database/migrations/2015_05_07_052924_create_auto_response_table.php b/code/code/database/migrations/2015_05_07_052924_create_auto_response_table.php
new file mode 100644
index 000000000..83ef0d754
--- /dev/null
+++ b/code/code/database/migrations/2015_05_07_052924_create_auto_response_table.php
@@ -0,0 +1,35 @@
+increments('id');
+ $table->boolean('new_ticket');
+ $table->boolean('agent_new_ticket');
+ $table->boolean('submitter');
+ $table->boolean('participants');
+ $table->boolean('overlimit');
+ $table->timestamps();
+ });
+
+ }
+
+ /**
+ * Reverse the migrations.
+ *
+ * @return void
+ */
+ public function down() {
+ Schema::drop('auto_response');
+ }
+
+}
diff --git a/code/code/database/migrations/2015_05_07_053318_create_alert_notice_table.php b/code/code/database/migrations/2015_05_07_053318_create_alert_notice_table.php
new file mode 100644
index 000000000..1037d13ce
--- /dev/null
+++ b/code/code/database/migrations/2015_05_07_053318_create_alert_notice_table.php
@@ -0,0 +1,58 @@
+increments('id');
+ $table->boolean('ticket_status');
+ $table->boolean('ticket_admin_email');
+ $table->boolean('ticket_department_manager');
+ $table->boolean('ticket_department_member');
+ $table->boolean('ticket_organization_accmanager');
+ $table->boolean('message_status');
+ $table->boolean('message_last_responder');
+ $table->boolean('message_assigned_agent');
+ $table->boolean('message_department_manager');
+ $table->boolean('message_organization_accmanager');
+ $table->boolean('internal_status');
+ $table->boolean('internal_last_responder');
+ $table->boolean('internal_assigned_agent');
+ $table->boolean('internal_department_manager');
+ $table->boolean('assignment_status');
+ $table->boolean('assignment_assigned_agent');
+ $table->boolean('assignment_team_leader');
+ $table->boolean('assignment_team_member');
+ $table->boolean('transfer_status');
+ $table->boolean('transfer_assigned_agent');
+ $table->boolean('transfer_department_manager');
+ $table->boolean('transfer_department_member');
+ $table->boolean('overdue_status');
+ $table->boolean('overdue_assigned_agent');
+ $table->boolean('overdue_department_manager');
+ $table->boolean('overdue_department_member');
+ $table->boolean('system_error');
+ $table->boolean('sql_error');
+ $table->boolean('excessive_failure');
+ $table->timestamps();
+ });
+ }
+
+ /**
+ * Reverse the migrations.
+ *
+ * @return void
+ */
+ public function down() {
+ Schema::create('alert_notice');
+ }
+
+}
diff --git a/code/code/database/migrations/2015_05_07_053704_create_access_table.php b/code/code/database/migrations/2015_05_07_053704_create_access_table.php
new file mode 100644
index 000000000..241c18708
--- /dev/null
+++ b/code/code/database/migrations/2015_05_07_053704_create_access_table.php
@@ -0,0 +1,39 @@
+increments('id');
+ $table->string('password_expire');
+ $table->string('reg_method');
+ $table->string('user_session');
+ $table->string('agent_session');
+ $table->string('reset_ticket_expire');
+ $table->boolean('password_reset');
+ $table->boolean('bind_agent_ip');
+ $table->boolean('reg_require');
+ $table->boolean('quick_access');
+ $table->timestamps();
+ });
+
+ }
+
+ /**
+ * Reverse the migrations.
+ *
+ * @return void
+ */
+ public function down() {
+ Schema::create('access');
+ }
+
+}
diff --git a/code/code/database/migrations/2015_05_07_063628_create_time_format_table.php b/code/code/database/migrations/2015_05_07_063628_create_time_format_table.php
new file mode 100644
index 000000000..67aec17a5
--- /dev/null
+++ b/code/code/database/migrations/2015_05_07_063628_create_time_format_table.php
@@ -0,0 +1,30 @@
+increments('id');
+ $table->string('format');
+ });
+
+ }
+
+ /**
+ * Reverse the migrations.
+ *
+ * @return void
+ */
+ public function down() {
+ Schema::drop('time_format');
+ }
+
+}
diff --git a/code/database/migrations/2015_03_25_050723_create_systems_table.php b/code/code/database/migrations/2015_06_09_062121_create_priority_table.php
similarity index 54%
rename from code/database/migrations/2015_03_25_050723_create_systems_table.php
rename to code/code/database/migrations/2015_06_09_062121_create_priority_table.php
index 6e3a0317f..c00862fd2 100644
--- a/code/database/migrations/2015_03_25_050723_create_systems_table.php
+++ b/code/code/database/migrations/2015_06_09_062121_create_priority_table.php
@@ -1,21 +1,19 @@
increments('id');
- $table->timestamps();
+ $table->string('name');
});
}
@@ -24,9 +22,8 @@ class CreateSystemsTable extends Migration {
*
* @return void
*/
- public function down()
- {
- Schema::drop('systems');
+ public function down() {
+ Schema::drop('priority');
}
}
diff --git a/code/database/migrations/2015_03_23_081500_create_templates_table.php b/code/code/database/migrations/2015_07_10_061107_create_ticketsource_table.php
similarity index 60%
rename from code/database/migrations/2015_03_23_081500_create_templates_table.php
rename to code/code/database/migrations/2015_07_10_061107_create_ticketsource_table.php
index ad1a6c6c5..550fe3c96 100644
--- a/code/database/migrations/2015_03_23_081500_create_templates_table.php
+++ b/code/code/database/migrations/2015_07_10_061107_create_ticketsource_table.php
@@ -3,7 +3,7 @@
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
-class CreateTemplatesTable extends Migration {
+class CreateTicketsourceTable extends Migration {
/**
* Run the migrations.
@@ -12,10 +12,10 @@ class CreateTemplatesTable extends Migration {
*/
public function up()
{
- Schema::create('templates', function(Blueprint $table)
- {
+ Schema::create('ticket_source', function (Blueprint $table) {
$table->increments('id');
- $table->timestamps();
+ $table->string('name');
+ $table->string('value');
});
}
@@ -26,7 +26,7 @@ class CreateTemplatesTable extends Migration {
*/
public function down()
{
- Schema::drop('templates');
+ Schema::drop('ticket_source');
}
}
diff --git a/code/database/migrations/2014_10_12_000000_create_users_table.php b/code/code/database/migrations/2015_08_10_114142_create_smtp_table.php
similarity index 54%
rename from code/database/migrations/2014_10_12_000000_create_users_table.php
rename to code/code/database/migrations/2015_08_10_114142_create_smtp_table.php
index 36a1db9bc..20e6e5d6a 100644
--- a/code/database/migrations/2014_10_12_000000_create_users_table.php
+++ b/code/code/database/migrations/2015_08_10_114142_create_smtp_table.php
@@ -3,7 +3,7 @@
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
-class CreateUsersTable extends Migration {
+class CreateSmtpTable extends Migration {
/**
* Run the migrations.
@@ -12,14 +12,14 @@ class CreateUsersTable extends Migration {
*/
public function up()
{
- Schema::create('users', function(Blueprint $table)
- {
+ Schema::create('send_mail', function (Blueprint $table) {
$table->increments('id');
+ $table->string('host');
+ $table->string('port');
+ $table->string('encryption');
$table->string('name');
- $table->string('email')->unique();
- $table->string('password', 60);
- $table->rememberToken();
- $table->timestamps();
+ $table->string('email');
+ $table->string('password');
});
}
@@ -30,7 +30,7 @@ class CreateUsersTable extends Migration {
*/
public function down()
{
- Schema::drop('users');
+ Schema::drop('send_mail');
}
}
diff --git a/code/database/seeds/.gitkeep b/code/code/database/seeds/.gitkeep
similarity index 100%
rename from code/database/seeds/.gitkeep
rename to code/code/database/seeds/.gitkeep
diff --git a/code/code/database/seeds/DatabaseSeeder.php b/code/code/database/seeds/DatabaseSeeder.php
new file mode 100644
index 000000000..db7039d66
--- /dev/null
+++ b/code/code/database/seeds/DatabaseSeeder.php
@@ -0,0 +1,301 @@
+ 'H:i:s'));
+ Time_format::create(array('format' => 'H.i.s'));
+
+ $timezone = ['Pacific/Midway' => '(GMT-11:00) Midway Island',
+ 'US/Samoa' => '(GMT-11:00) Samoa',
+ 'US/Hawaii' => '(GMT-10:00) Hawaii',
+ 'US/Alaska' => '(GMT-09:00) Alaska',
+ 'US/Pacific' => '(GMT-08:00) Pacific Time (US & Canada)',
+ 'America/Tijuana' => '(GMT-08:00) Tijuana',
+ 'US/Arizona' => '(GMT-07:00) Arizona',
+ 'US/Mountain' => '(GMT-07:00) Mountain Time (US & Canada)',
+ 'America/Chihuahua' => '(GMT-07:00) Chihuahua',
+ 'America/Mazatlan' => '(GMT-07:00) Mazatlan',
+ 'America/Mexico_City' => '(GMT-06:00) Mexico City',
+ 'America/Monterrey' => '(GMT-06:00) Monterrey',
+ 'Canada/Saskatchewan' => '(GMT-06:00) Saskatchewan',
+ 'US/Central' => '(GMT-06:00) Central Time (US & Canada)',
+ 'US/Eastern' => '(GMT-05:00) Eastern Time (US & Canada)',
+ 'US/East-Indiana' => '(GMT-05:00) Indiana (East)',
+ 'America/Bogota' => '(GMT-05:00) Bogota',
+ 'America/Lima' => '(GMT-05:00) Lima',
+ 'America/Caracas' => '(GMT-04:30) Caracas',
+ 'Canada/Atlantic' => '(GMT-04:00) Atlantic Time (Canada)',
+ 'America/La_Paz' => '(GMT-04:00) La Paz',
+ 'America/Santiago' => '(GMT-04:00) Santiago',
+ 'Canada/Newfoundland' => '(GMT-03:30) Newfoundland',
+ 'America/Buenos_Aires' => '(GMT-03:00) Buenos Aires',
+ 'Greenland' => '(GMT-03:00) Greenland',
+ 'Atlantic/Stanley' => '(GMT-02:00) Stanley',
+ 'Atlantic/Azores' => '(GMT-01:00) Azores',
+ 'Atlantic/Cape_Verde' => '(GMT-01:00) Cape Verde Is.',
+ 'Africa/Casablanca' => '(GMT) Casablanca',
+ 'Europe/Dublin' => '(GMT) Dublin',
+ 'Europe/Lisbon' => '(GMT) Lisbon',
+ 'Europe/London' => '(GMT) London',
+ 'Africa/Monrovia' => '(GMT) Monrovia',
+ 'Europe/Amsterdam' => '(GMT+01:00) Amsterdam',
+ 'Europe/Belgrade' => '(GMT+01:00) Belgrade',
+ 'Europe/Berlin' => '(GMT+01:00) Berlin',
+ 'Europe/Bratislava' => '(GMT+01:00) Bratislava',
+ 'Europe/Brussels' => '(GMT+01:00) Brussels',
+ 'Europe/Budapest' => '(GMT+01:00) Budapest',
+ 'Europe/Copenhagen' => '(GMT+01:00) Copenhagen',
+ 'Europe/Ljubljana' => '(GMT+01:00) Ljubljana',
+ 'Europe/Madrid' => '(GMT+01:00) Madrid',
+ 'Europe/Paris' => '(GMT+01:00) Paris',
+ 'Europe/Prague' => '(GMT+01:00) Prague',
+ 'Europe/Rome' => '(GMT+01:00) Rome',
+ 'Europe/Sarajevo' => '(GMT+01:00) Sarajevo',
+ 'Europe/Skopje' => '(GMT+01:00) Skopje',
+ 'Europe/Stockholm' => '(GMT+01:00) Stockholm',
+ 'Europe/Vienna' => '(GMT+01:00) Vienna',
+ 'Europe/Warsaw' => '(GMT+01:00) Warsaw',
+ 'Europe/Zagreb' => '(GMT+01:00) Zagreb',
+ 'Europe/Athens' => '(GMT+02:00) Athens',
+ 'Europe/Bucharest' => '(GMT+02:00) Bucharest',
+ 'Africa/Cairo' => '(GMT+02:00) Cairo',
+ 'Africa/Harare' => '(GMT+02:00) Harare',
+ 'Europe/Helsinki' => '(GMT+02:00) Helsinki',
+ 'Europe/Istanbul' => '(GMT+02:00) Istanbul',
+ 'Asia/Jerusalem' => '(GMT+02:00) Jerusalem',
+ 'Europe/Kiev' => '(GMT+02:00) Kyiv',
+ 'Europe/Minsk' => '(GMT+02:00) Minsk',
+ 'Europe/Riga' => '(GMT+02:00) Riga',
+ 'Europe/Sofia' => '(GMT+02:00) Sofia',
+ 'Europe/Tallinn' => '(GMT+02:00) Tallinn',
+ 'Europe/Vilnius' => '(GMT+02:00) Vilnius',
+ 'Asia/Baghdad' => '(GMT+03:00) Baghdad',
+ 'Asia/Kuwait' => '(GMT+03:00) Kuwait',
+ 'Africa/Nairobi' => '(GMT+03:00) Nairobi',
+ 'Asia/Riyadh' => '(GMT+03:00) Riyadh',
+ 'Asia/Tehran' => '(GMT+03:30) Tehran',
+ 'Europe/Moscow' => '(GMT+04:00) Moscow',
+ 'Asia/Baku' => '(GMT+04:00) Baku',
+ 'Europe/Volgograd' => '(GMT+04:00) Volgograd',
+ 'Asia/Muscat' => '(GMT+04:00) Muscat',
+ 'Asia/Tbilisi' => '(GMT+04:00) Tbilisi',
+ 'Asia/Yerevan' => '(GMT+04:00) Yerevan',
+ 'Asia/Kabul' => '(GMT+04:30) Kabul',
+ 'Asia/Karachi' => '(GMT+05:00) Karachi',
+ 'Asia/Tashkent' => '(GMT+05:00) Tashkent',
+ 'Asia/Kolkata' => '(GMT+05:30) Kolkata',
+ 'Asia/Kathmandu' => '(GMT+05:45) Kathmandu',
+ 'Asia/Yekaterinburg' => '(GMT+06:00) Ekaterinburg',
+ 'Asia/Almaty' => '(GMT+06:00) Almaty',
+ 'Asia/Dhaka' => '(GMT+06:00) Dhaka',
+ 'Asia/Novosibirsk' => '(GMT+07:00) Novosibirsk',
+ 'Asia/Bangkok' => '(GMT+07:00) Bangkok',
+ 'Asia/Ho_Chi_Minh' => '(GMT+07.00) Ho Chi Minh',
+ 'Asia/Jakarta' => '(GMT+07:00) Jakarta',
+ 'Asia/Krasnoyarsk' => '(GMT+08:00) Krasnoyarsk',
+ 'Asia/Chongqing' => '(GMT+08:00) Chongqing',
+ 'Asia/Hong_Kong' => '(GMT+08:00) Hong Kong',
+ 'Asia/Kuala_Lumpur' => '(GMT+08:00) Kuala Lumpur',
+ 'Australia/Perth' => '(GMT+08:00) Perth',
+ 'Asia/Singapore' => '(GMT+08:00) Singapore',
+ 'Asia/Taipei' => '(GMT+08:00) Taipei',
+ 'Asia/Ulaanbaatar' => '(GMT+08:00) Ulaan Bataar',
+ 'Asia/Urumqi' => '(GMT+08:00) Urumqi',
+ 'Asia/Irkutsk' => '(GMT+09:00) Irkutsk',
+ 'Asia/Seoul' => '(GMT+09:00) Seoul',
+ 'Asia/Tokyo' => '(GMT+09:00) Tokyo',
+ 'Australia/Adelaide' => '(GMT+09:30) Adelaide',
+ 'Australia/Darwin' => '(GMT+09:30) Darwin',
+ 'Asia/Yakutsk' => '(GMT+10:00) Yakutsk',
+ 'Australia/Brisbane' => '(GMT+10:00) Brisbane',
+ 'Australia/Canberra' => '(GMT+10:00) Canberra',
+ 'Pacific/Guam' => '(GMT+10:00) Guam',
+ 'Australia/Hobart' => '(GMT+10:00) Hobart',
+ 'Australia/Melbourne' => '(GMT+10:00) Melbourne',
+ 'Pacific/Port_Moresby' => '(GMT+10:00) Port Moresby',
+ 'Australia/Sydney' => '(GMT+10:00) Sydney',
+ 'Asia/Vladivostok' => '(GMT+11:00) Vladivostok',
+ 'Asia/Magadan' => '(GMT+12:00) Magadan',
+ 'Pacific/Auckland' => '(GMT+12:00) Auckland',
+ 'Pacific/Fiji' => '(GMT+12:00) Fiji'];
+
+ foreach ($timezone as $name => $location) {
+ Timezones::create(array('name' => $name, 'location' => $location));
+ }
+
+ Ticket_status::create(array('name' => 'Open', 'state' => 'open', 'mode' => '3', 'message'=>'Ticket have been Reopened by', 'flags' => '0', 'sort' => '1', 'properties' => 'Open tickets.'));
+ Ticket_status::create(array('name' => 'Resolved', 'state' => 'closed', 'mode' => '1','message'=>'Ticket have been Resolved by', 'flags' => '0', 'sort' => '2', 'properties' => 'Resolved tickets.'));
+ Ticket_status::create(array('name' => 'Closed', 'state' => 'closed', 'mode' => '3','message'=>'Ticket have been Closed by', 'flags' => '0', 'sort' => '3', 'properties' => 'Closed tickets. Tickets will still be accessible on client and staff panels.'));
+ Ticket_status::create(array('name' => 'Archived', 'state' => 'archived', 'mode' => '3','message'=>'Ticket have been Archived by', 'flags' => '0', 'sort' => '4', 'properties' => 'Tickets only adminstratively available but no longer accessible on ticket queues and client panel.'));
+ Ticket_status::create(array('name' => 'Deleted', 'state' => 'deleted', 'mode' => '3','message'=>'Ticket have been Deleted by', 'flags' => '0', 'sort' => '5', 'properties' => 'Tickets queued for deletion. Not accessible on ticket queues.'));
+
+ Ticket::create(array('num_format' => '#ABCD 1234 1234567', 'num_sequence' => '0', 'priority' => 'low', 'sla' => '12 Hours', 'help_topic' => 'support query'));
+
+ Ticket_priority::create(array('priority' => 'low', 'priority_desc' => 'Low', 'priority_color' => 'info', 'priority_urgency' => '4', 'ispublic' => '1'));
+ Ticket_priority::create(array('priority' => 'normal', 'priority_desc' => 'Normal', 'priority_color' => 'info', 'priority_urgency' => '3', 'ispublic' => '1'));
+ Ticket_priority::create(array('priority' => 'high', 'priority_desc' => 'High', 'priority_color' => 'warning', 'priority_urgency' => '2', 'ispublic' => '1'));
+ Ticket_priority::create(array('priority' => 'emergency', 'priority_desc' => 'Emergency', 'priority_color' => 'danger', 'priority_urgency' => '1', 'ispublic' => '1'));
+
+ Sla_plan::create(array('name' => 'Sla 1', 'grace_period' => '6 Hours', 'status' => '1'));
+ Sla_plan::create(array('name' => 'Sla 2', 'grace_period' => '12 Hours', 'status' => '1'));
+ Sla_plan::create(array('name' => 'Sla 3', 'grace_period' => '24 Hours', 'status' => '1'));
+
+ $mailbox = ['IMAP+SSl', 'IMAP', 'POP+SSL', 'POP'];
+
+ foreach ($mailbox as $protocol) {
+ MailboxProtocol::create(array('name' => $protocol));
+ }
+
+ $logs = ['WARN', 'DEBUG', 'ERROR'];
+
+ foreach ($logs as $log) {
+ Logs::create(['level' => $log]);
+ }
+
+ $languages = [
+ 'English' => 'en',
+ 'Italian' => 'it',
+ 'German' => 'de',
+ 'French' => 'fr',
+ 'Brazilian Portuguese' => 'pt_BR',
+ 'Dutch' => 'nl',
+ 'Spanish' => 'es',
+ 'Norwegian' => 'nb_NO',
+ 'Danish' => 'da'];
+
+ foreach ($languages as $language => $locale) {
+ Languages::create(['name' => $language, 'locale' => $locale]);
+ }
+
+ Guest_note::create(['heading' => 'Welcome to the Support Center', 'content' => 'Hello this is a new helpdesk support system ans it is in the development phase.']);
+
+ Form_name::create(['name' => 'form', 'status' => '1', 'no_of_fields' => '2']);
+
+ Form_details::create(['form_name_id' => '1', 'label' => 'Name', 'type' => 'text']);
+ Form_details::create(['form_name_id' => '1', 'label' => 'Phone', 'type' => 'number']);
+ Form_details::create(['form_name_id' => '1', 'label' => 'Email', 'type' => 'text']);
+ Form_details::create(['form_name_id' => '1', 'label' => 'Subject', 'type' => 'text']);
+ Form_details::create(['form_name_id' => '1', 'label' => 'Details', 'type' => 'textarea']);
+
+ $date_time_formats = [
+ 'd/m/Y H:i:s',
+ 'd.m.Y H:i:s',
+ 'd-m-Y H:i:s',
+ 'm/d/Y H:i:s',
+ 'm.d.Y H:i:s',
+ 'm-d-Y H:i:s',
+ 'Y/m/d H:i:s',
+ 'Y.m.d H:i:s',
+ 'Y-m-d H:i:s'];
+
+ foreach ($date_time_formats as $date_time_format) {
+ Date_time_format::create(['format' => $date_time_format]);
+ }
+
+ $date_formats = [
+ 'dd/mm/yyyy',
+ 'dd-mm-yyyy',
+ 'dd.mm.yyyy',
+ 'mm/dd/yyyy',
+ 'mm:dd:yyyy',
+ 'mm-dd-yyyy',
+ 'dd-mm-yyyy',
+ 'yyyy/mm/dd',
+ 'yyyy.mm.dd',
+ 'yyyy-mm-dd'];
+
+ foreach ($date_formats as $date_format) {
+ Date_format::create(['format' => $date_format]);
+ }
+
+ Teams::create(array('name' => 'Level 1 Support'));
+ Teams::create(array('name' => 'Level 2 Support'));
+ Teams::create(array('name' => 'Developer'));
+
+ Groups::create(array('name' => 'Group A', 'group_status' => '1', 'can_create_ticket' => '1', 'can_edit_ticket' => '1', 'can_post_ticket' => '1', 'can_close_ticket' => '1', 'can_assign_ticket' => '1', 'can_transfer_ticket' => '1', 'can_delete_ticket' => '1', 'can_ban_email' => '1', 'can_manage_canned' => '1', 'can_manage_faq' => '1', 'can_view_agent_stats' => '1', 'department_access' => '1'));
+ Groups::create(array('name' => 'Group B', 'group_status' => '1', 'can_create_ticket' => '1', 'can_edit_ticket' => '0', 'can_post_ticket' => '0', 'can_close_ticket' => '1', 'can_assign_ticket' => '1', 'can_transfer_ticket' => '1', 'can_delete_ticket' => '1', 'can_ban_email' => '1', 'can_manage_canned' => '1', 'can_manage_faq' => '1', 'can_view_agent_stats' => '1', 'department_access' => '1'));
+ Groups::create(array('name' => 'Group C', 'group_status' => '1', 'can_create_ticket' => '0', 'can_edit_ticket' => '0', 'can_post_ticket' => '0', 'can_close_ticket' => '1', 'can_assign_ticket' => '0', 'can_transfer_ticket' => '0', 'can_delete_ticket' => '0', 'can_ban_email' => '0', 'can_manage_canned' => '0', 'can_manage_faq' => '0', 'can_view_agent_stats' => '0', 'department_access' => '0'));
+
+ Department::create(array('name' => 'Support'));
+ Department::create(array('name' => 'Sales'));
+ Department::create(array('name' => 'Operation'));
+
+ // Access::create(array('password_expire' => '1 Months', 'reg_method' => 'disable'));
+ // Access::create(array('password_expire' => '2 Months', 'reg_method' => 'private'));
+ // Access::create(array('password_expire' => '6 Months', 'reg_method' => 'public'));
+
+ // Company::create(array('company_name' => 'D company', 'website' => 'dcompany.org', 'phone' => '8606574126'));
+
+ // Emails::create(array('email_address' => 'maintanance@dcompany.com', 'email_name' => 'maintain', 'department' => 'maintanance', 'priority' => 'low', 'help_topic' => 'maintanance query', 'user_name' => 'maintanance'));
+
+ help_topic::create(array('topic' => 'Support query', 'parent_topic' => 'Support query', 'custom_form' => '1', 'department' => '1', 'ticket_status' => '1', 'priority' => '2', 'sla_plan' => '1', 'ticket_num_format' => '1', 'status' => '1', 'type' => '1', 'auto_response' => '0'));
+ help_topic::create(array('topic' => 'Sales query', 'parent_topic' => 'Sale query', 'custom_form' => '1', 'department' => '2', 'ticket_status' => '1', 'priority' => '2', 'sla_plan' => '1', 'ticket_num_format' => '1', 'status' => '1', 'type' => '1', 'auto_response' => '0'));
+ help_topic::create(array('topic' => 'Operational query', 'parent_topic' => 'Operational query', 'custom_form' => '1', 'department' => '3', 'ticket_status' => '1', 'priority' => '2', 'sla_plan' => '1', 'ticket_num_format' => '1', 'status' => '1', 'type' => '1', 'auto_response' => '0'));
+
+ Priority::create(array('name' => 'low'));
+ Priority::create(array('name' => 'high'));
+
+ Access::create(array('id' => '1'));
+ Alert::create(array('id' => '1'));
+ Company::create(array('id' => '1'));
+ Email::create(array('id' => '1'));
+ Responder::create(array('id' => '1'));
+ System::create(array('id' => '1'));
+ Footer::create(array('id' => '1'));
+ Footer2::create(array('id' => '1'));
+ Footer3::create(array('id' => '1'));
+ Footer4::create(array('id' => '1'));
+ // Ticket::create(array('id' => '1'));
+
+ Ticket_source::create(array('name'=>'web', 'value'=>'Web'));
+ Ticket_source::create(array('name'=>'email', 'value'=>'E-mail'));
+ Ticket_source::create(array('name'=>'agent', 'value'=>'Agent Panel'));
+
+ Smtp::create(array('id' => '1'));
+
+ }
+}
\ No newline at end of file
diff --git a/code/gulpfile.js b/code/code/gulpfile.js
similarity index 100%
rename from code/gulpfile.js
rename to code/code/gulpfile.js
diff --git a/code/code/nbproject/private/private.properties b/code/code/nbproject/private/private.properties
new file mode 100644
index 000000000..fa0c378f8
--- /dev/null
+++ b/code/code/nbproject/private/private.properties
@@ -0,0 +1,6 @@
+copy.src.files=false
+copy.src.on.open=false
+copy.src.target=
+index.file=
+run.as=LOCAL
+url=http://localhost/faveonew/
diff --git a/code/code/nbproject/private/private.xml b/code/code/nbproject/private/private.xml
new file mode 100644
index 000000000..6807a2ba1
--- /dev/null
+++ b/code/code/nbproject/private/private.xml
@@ -0,0 +1,7 @@
+
+";
+// echo " ";
+// foreach ($routeCollection as $value) {
+// echo " ";
+// echo "HTTP Method
";
+// echo "Route
";
+// echo "Corresponding Action
";
+// echo " ";
+// }
+// echo "" . $value->getMethods()[0] . " ";
+// echo "" . $value->getName() . " ";
+// echo "" . $value->getActionName() . " ";
+// echo "
+ 404 Error Page
+
+ 404
+ Oops! Page not found.
+
+ Register a new membership
+
+@stop
diff --git a/code/code/resources/views/auth/password.blade.php b/code/code/resources/views/auth/password.blade.php
new file mode 100644
index 000000000..e43819dfb
--- /dev/null
+++ b/code/code/resources/views/auth/password.blade.php
@@ -0,0 +1,19 @@
+@extends('themes.default1.layouts.login')
+
+@section('body')
+
+
+New ticket {!! $ticket_number !!} created
+
+To view or respond to the ticket, please login to the support ticket system
+
+Your friendly {!! $system !!}
+
+From
+Name :- {!! $name !!}
+E-mail :- {!! $email !!}
+
+Regards,
+{!! $from !!}
+
diff --git a/code/code/resources/views/emails/Ticket_Create.blade.php b/code/code/resources/views/emails/Ticket_Create.blade.php
new file mode 100644
index 000000000..f35bd3fe8
--- /dev/null
+++ b/code/code/resources/views/emails/Ticket_Create.blade.php
@@ -0,0 +1,20 @@
+---Reply above this line---
+
+{!!$name!!}
+
+Thank you for contacting us. This is an automated response confirming the receipt of your ticket. Our team will get back to you as soon as possible. When replying, please make sure that the ticket ID is kept in the subject so that we can track your replies.
+
+Ticket ID: {!!$ticket_number!!}
+Subject: Ticket Subject
+Department: Support
+Type: Need Information
+Status: Open
+Priority: Normal
+
+You can check the status of or update this ticket online at: {!! \URL::route('ticket2') !!}
+
+Thank You.
+
+Kind regards,
+
+{!! $from !!}
\ No newline at end of file
diff --git a/code/resources/views/emails/Ticket_Reply.blade.php b/code/code/resources/views/emails/Ticket_Reply.blade.php
similarity index 84%
rename from code/resources/views/emails/Ticket_Reply.blade.php
rename to code/code/resources/views/emails/Ticket_Reply.blade.php
index c77ca6952..9e920175e 100644
--- a/code/resources/views/emails/Ticket_Reply.blade.php
+++ b/code/code/resources/views/emails/Ticket_Reply.blade.php
@@ -2,12 +2,3 @@
hello {{$name}}
Your ticket have been created please visit this link for your ticket query.
-
-fngvy
-y
-u
-y
-y
-b
-gguycuuv
-]bu
\ No newline at end of file
diff --git a/code/code/resources/views/emails/Ticket_assign.blade.php b/code/code/resources/views/emails/Ticket_assign.blade.php
new file mode 100644
index 000000000..39596486c
--- /dev/null
+++ b/code/code/resources/views/emails/Ticket_assign.blade.php
@@ -0,0 +1,11 @@
+Hi {!! $agent !!},
+Ticket No. :- {!! $ticket_number !!}
+
+Has been assigned to you by {!! $master !!}
+
+Your friendly {!! $system !!}
+
+Regards,
+{!! $from !!}
+
+
diff --git a/code/code/resources/views/emails/check_ticket.blade.php b/code/code/resources/views/emails/check_ticket.blade.php
new file mode 100644
index 000000000..922f2b020
--- /dev/null
+++ b/code/code/resources/views/emails/check_ticket.blade.php
@@ -0,0 +1,9 @@
+Hi {!! $user !!},
+
+
+Click the link below to view your Requested ticket
+{!! $link !!}
+
+
+Regards,
+{!! $from !!}
\ No newline at end of file
diff --git a/code/code/resources/views/emails/close_ticket.blade.php b/code/code/resources/views/emails/close_ticket.blade.php
new file mode 100644
index 000000000..58e951133
--- /dev/null
+++ b/code/code/resources/views/emails/close_ticket.blade.php
@@ -0,0 +1,9 @@
+Ticket No.: {{ $ticket_number }}
+
+Your ticket have been closed.
+
+Thank you
+
+Kind regards,
+{!! $from !!}
+
diff --git a/code/code/resources/views/emails/email_reply.blade.php b/code/code/resources/views/emails/email_reply.blade.php
new file mode 100644
index 000000000..df7521c63
--- /dev/null
+++ b/code/code/resources/views/emails/email_reply.blade.php
@@ -0,0 +1,13 @@
+Hi {!! $agent !!},
+A reply been made to ticket {!! $ticket_number !!}
+
+To view or respond to the ticket, please login to the support ticket system
+
+Your friendly {!! $system !!}
+
+From
+Name :- {!! $name !!}
+E-mail :- {!! $email !!}
+
+Regards,
+{!! $from !!}
\ No newline at end of file
diff --git a/code/code/resources/views/emails/pass.blade.php b/code/code/resources/views/emails/pass.blade.php
new file mode 100644
index 000000000..91e2a2577
--- /dev/null
+++ b/code/code/resources/views/emails/pass.blade.php
@@ -0,0 +1,13 @@
+Hello {!! $name !!},
+
+Your account has been created.
+
+Password: {{$password}}
+
+To view or respond to the ticket, please login {!! \URL::route('ticket2') !!} to the support ticket system
+
+Thank You.
+
+Kind regards,
+
+{!! $from !!}
\ No newline at end of file
diff --git a/code/code/resources/views/emails/password.blade (2).php b/code/code/resources/views/emails/password.blade (2).php
new file mode 100644
index 000000000..c97bca905
--- /dev/null
+++ b/code/code/resources/views/emails/password.blade (2).php
@@ -0,0 +1 @@
+Click here to reset your password: {!! url('password/reset/'.$token) !!}
diff --git a/code/code/resources/views/emails/password.blade.php b/code/code/resources/views/emails/password.blade.php
new file mode 100644
index 000000000..71ee14206
--- /dev/null
+++ b/code/code/resources/views/emails/password.blade.php
@@ -0,0 +1,14 @@
+Hello
+
+You asked to reset your Sync password. To do so, please click this link:
+
+ {!! url('password/reset/'.$token) !!}
+
+
+This will let you change your password to something new. If you didn't ask for this, don't worry, we'll keep your password safe.
+
+Thank You.
+
+Kind regards,
+first(); $company = $company->company_name; ?>
+{!! $company !!}
\ No newline at end of file
diff --git a/code/code/resources/views/emails/report.blade.php b/code/code/resources/views/emails/report.blade.php
new file mode 100644
index 000000000..1e6423ec1
--- /dev/null
+++ b/code/code/resources/views/emails/report.blade.php
@@ -0,0 +1 @@
+{{$e}}
\ No newline at end of file
diff --git a/code/code/resources/views/emails/ticket_re-reply.blade.php b/code/code/resources/views/emails/ticket_re-reply.blade.php
new file mode 100644
index 000000000..d7d989630
--- /dev/null
+++ b/code/code/resources/views/emails/ticket_re-reply.blade.php
@@ -0,0 +1,16 @@
+---Reply above this line---
+
+Hello {!! $name !!},
+
+{!! $content !!}
+
+Regards,
+{!! $Agent_Signature !!}
+{!! $From !!}
+
+Ticket Details
+Ticket ID: {!! $ticket_number !!}
+Department: Support
+{{-- Type: Need Information
--}}
+{{-- Status: Open
--}}
+{{-- Priority: Normal
--}}
diff --git a/code/code/resources/views/errors/404.blade.php b/code/code/resources/views/errors/404.blade.php
new file mode 100644
index 000000000..834eb7efd
--- /dev/null
+++ b/code/code/resources/views/errors/404.blade.php
@@ -0,0 +1,50 @@
+
+
+
+
+
+
+ Oops! Page not found.
+ Sorry!
+ {{Lang::get('lang.account_status_setting')}}
{{Lang::get('lang.assigned_team')}}
diff --git a/code/resources/views/themes/default1/admin/agent/agents/edit.blade.php b/code/code/resources/views/themes/default1/admin/agent/agents/edit.blade.php
similarity index 94%
rename from code/resources/views/themes/default1/admin/agent/agents/edit.blade.php
rename to code/code/resources/views/themes/default1/admin/agent/agents/edit.blade.php
index 9b470a945..abc7c84e8 100644
--- a/code/resources/views/themes/default1/admin/agent/agents/edit.blade.php
+++ b/code/code/resources/views/themes/default1/admin/agent/agents/edit.blade.php
@@ -1,4 +1,4 @@
-@extends('themes.default1.layouts.blank')
+@extends('themes.default1.layouts.admin')
@section('Staffs')
class="active"
@@ -47,6 +47,7 @@ class="active"
{{Lang::get('lang.agent_signature')}}
@@ -117,16 +121,12 @@ class="active"
{{Lang::get('lang.account_status_setting')}}
{{Lang::get('lang.assigned_team')}}
diff --git a/code/resources/views/themes/default1/admin/agent/agents/index.blade.php b/code/code/resources/views/themes/default1/admin/agent/agents/index.blade.php
similarity index 61%
rename from code/resources/views/themes/default1/admin/agent/agents/index.blade.php
rename to code/code/resources/views/themes/default1/admin/agent/agents/index.blade.php
index de620561a..0ff898325 100644
--- a/code/resources/views/themes/default1/admin/agent/agents/index.blade.php
+++ b/code/code/resources/views/themes/default1/admin/agent/agents/index.blade.php
@@ -1,4 +1,4 @@
-@extends('themes.default1.layouts.blank')
+@extends('themes.default1.layouts.admin')
@section('Staffs')
class="active"
@@ -30,8 +30,7 @@ class="active"
@section('content')
- {{Lang::get('lang.agents')}}
{{Lang::get('lang.create_agent')}}
@@ -100,7 +100,7 @@ class="active"
{!! Form::checkbox('auto_ticket_response',1,null,['class' => 'checkbox']) !!}
@@ -131,7 +130,7 @@ class="active"
{!! Form::checkbox('auto_message_response',1,null,['class' => 'checkbox']) !!}
@@ -145,7 +144,7 @@ class="active"
{{Lang::get('lang.group_access')}}
diff --git a/code/resources/views/themes/default1/admin/agent/departments/edit.blade.php b/code/code/resources/views/themes/default1/admin/agent/departments/edit.blade.php
similarity index 94%
rename from code/resources/views/themes/default1/admin/agent/departments/edit.blade.php
rename to code/code/resources/views/themes/default1/admin/agent/departments/edit.blade.php
index 8a42354d5..bec5fbcdf 100644
--- a/code/resources/views/themes/default1/admin/agent/departments/edit.blade.php
+++ b/code/code/resources/views/themes/default1/admin/agent/departments/edit.blade.php
@@ -1,4 +1,4 @@
-@extends('themes.default1.layouts.blank')
+@extends('themes.default1.layouts.admin')
@section('Staffs')
class="active"
@@ -43,7 +43,7 @@ class="active"
@@ -99,7 +99,7 @@ class="active"
{!! Form::checkbox('auto_ticket_response',1,null,['class' => 'checkbox']) !!}
@@ -130,7 +130,7 @@ class="active"
{!! Form::checkbox('auto_message_response',1,null,['class' => 'checkbox']) !!}
@@ -144,7 +144,7 @@ class="active"
{{Lang::get('lang.group_access')}}
diff --git a/code/resources/views/themes/default1/admin/agent/departments/index.blade.php b/code/code/resources/views/themes/default1/admin/agent/departments/index.blade.php
similarity index 81%
rename from code/resources/views/themes/default1/admin/agent/departments/index.blade.php
rename to code/code/resources/views/themes/default1/admin/agent/departments/index.blade.php
index ac06a6608..8908f641e 100644
--- a/code/resources/views/themes/default1/admin/agent/departments/index.blade.php
+++ b/code/code/resources/views/themes/default1/admin/agent/departments/index.blade.php
@@ -1,4 +1,4 @@
-@extends('themes.default1.layouts.blank')
+@extends('themes.default1.layouts.admin')
@section('Staffs')
class="active"
@@ -56,7 +56,7 @@ class="active"
{{Session::get('fails')}}
Status: | {{$status->state}} |
Priority: | {{$priority->priority}} |
Department: | {{$help_topic->department}} |
Email: | {{$user->email}} |
Phone: | {{$thread->user_id}} |
Source: | {{$thread->ip_address}} |
Help Topic: | {{$help_topic->topic}} |
Last Message: | {{$last->poster}} |
diff --git a/code/code/resources/views/themes/default1/agent/ticket/myticket.blade.php b/code/code/resources/views/themes/default1/agent/ticket/myticket.blade.php new file mode 100644 index 000000000..6d911a0a2 --- /dev/null +++ b/code/code/resources/views/themes/default1/agent/ticket/myticket.blade.php @@ -0,0 +1,202 @@ +@extends('themes.default1.layouts.agent') + +@section('Tickets') +class="active" +@stop + +@section('ticket-bar') +active +@stop + +@section('myticket') +class="active" +@stop + +@section('content') + +
+ + + +@stop \ No newline at end of file diff --git a/code/code/resources/views/themes/default1/agent/ticket/new.blade.php b/code/code/resources/views/themes/default1/agent/ticket/new.blade.php new file mode 100644 index 000000000..ea1770256 --- /dev/null +++ b/code/code/resources/views/themes/default1/agent/ticket/new.blade.php @@ -0,0 +1,221 @@ +@extends('themes.default1.layouts.agent') + +@section('Tickets') +class="active" +@stop + +@section('ticket-bar') +active +@stop + +@section('newticket') +class="active" +@stop + + +@section('content') + +{!! Form::open(['route'=>'post.newticket','method'=>'post']) !!} +
+ {!! Form::close() !!} + + + @stop \ No newline at end of file diff --git a/code/code/resources/views/themes/default1/agent/ticket/open.blade.php b/code/code/resources/views/themes/default1/agent/ticket/open.blade.php new file mode 100644 index 000000000..16146311f --- /dev/null +++ b/code/code/resources/views/themes/default1/agent/ticket/open.blade.php @@ -0,0 +1,249 @@ +@extends('themes.default1.layouts.agent') + +@section('Tickets') +class="active" +@stop + +@section('ticket-bar') +active +@stop + +@section('open') +class="active" +@stop + +@section('content') + +
+ + + +@stop \ No newline at end of file diff --git a/code/code/resources/views/themes/default1/agent/ticket/overdue.blade.php b/code/code/resources/views/themes/default1/agent/ticket/overdue.blade.php new file mode 100644 index 000000000..3b8ce28be --- /dev/null +++ b/code/code/resources/views/themes/default1/agent/ticket/overdue.blade.php @@ -0,0 +1,203 @@ +@extends('themes.default1.layouts.agent') + +@section('Tickets') +class="active" +@stop + +@section('ticket-bar') +active +@stop + +@section('overdue') +class="active" +@stop + +@section('content') + +
+ + + +@stop \ No newline at end of file diff --git a/code/code/resources/views/themes/default1/agent/ticket/pdf.blade.php b/code/code/resources/views/themes/default1/agent/ticket/pdf.blade.php new file mode 100644 index 000000000..72b82a666 --- /dev/null +++ b/code/code/resources/views/themes/default1/agent/ticket/pdf.blade.php @@ -0,0 +1,208 @@ + + +
+
+ + + +
+