Attendize/app/Http/Controllers/HelpDeskController.php

38 lines
654 B
PHP
Raw Normal View History

2020-04-30 08:34:51 +00:00
<?php
namespace App\Http\Controllers;
use App\Models\HelpTicketCategory;
class HelpDeskController extends Controller
{
public function show(){
}
/**
* Show the form for creating the help desk ticket
*/
public function create(){
$categories = HelpTicketCategory::where('active',1)
2020-04-30 09:49:50 +00:00
->select(['id','title_'.config('app.locale').' as title'])
2020-04-30 09:53:32 +00:00
->orderBy('position','asc')
2020-04-30 09:49:50 +00:00
->pluck('title','id');
2020-04-30 09:53:32 +00:00
// dump($categories);
2020-04-30 09:49:50 +00:00
2020-04-30 09:54:36 +00:00
return $this->render('Pages.HelpDeskCreateForm',$categories);
2020-04-30 08:34:51 +00:00
}
public function store(){
}
public function comment(){
}
}