updated commit

This commit is contained in:
sujitprasad
2015-05-08 16:25:40 +05:30
parent ef834c58dc
commit 267467725e
73 changed files with 2748 additions and 2938 deletions

View File

@@ -1,36 +1,33 @@
<?php namespace App\Http\Controllers\Admin;
use App\Http\Requests;
<?php
namespace App\Http\Controllers\Admin;
use App\Http\Controllers\Controller;
use Illuminate\Http\Request;
/* include Priority Model */
use App\Model\Priority;
/* include Ticket_thread Model */
use App\Model\Ticket_thread;
/**
* ThreadController
*
* @package Controllers
* @subpackage Controller
* @author Ladybird <info@ladybirdweb.com>
*/
class ThreadController extends Controller {
/* get the values from ticket_thread Table and direct to view page */
public function getTickets(Ticket_thread $thread, Priority $priority)
{
try
{
/**
* get the values from ticket_thread Table and direct to view page
* @param type Ticket_thread $thread
* @param type Priority $priority
* @return type Response
*/
public function getTickets(Ticket_thread $thread, Priority $priority) {
try {
/* get the values of Ticket_thread from Ticket_thread Table */
$threads = $thread->get();
/* get the values of priority from Priority Table */
$priorities = $priority->get();
/* Direct to view page */
return view('themes.default1.admin.tickets.ticket', compact('threads','priorities'));
}
catch(Exception $e)
{
return view('themes.default1.admin.tickets.ticket', compact('threads', 'priorities'));
} catch (Exception $e) {
return view('404');
}
}