Attendize/app/Http/Controllers/HelpDeskController.php

37 lines
605 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'])
->pluck('title','id');
dump($categories);
2020-04-30 08:34:51 +00:00
$this->render('Pages.HelpDeskCreateForm',$categories);
}
public function store(){
}
public function comment(){
}
}