help desk crud
This commit is contained in:
parent
f08950e371
commit
08836da2a4
|
|
@ -0,0 +1,33 @@
|
|||
<?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)
|
||||
->get(['id','title_'.config('app.locale').' as title'])->dump();
|
||||
$this->render('Pages.HelpDeskCreateForm',$categories);
|
||||
}
|
||||
|
||||
public function store(){
|
||||
|
||||
}
|
||||
|
||||
public function comment(){
|
||||
|
||||
}
|
||||
}
|
||||
|
|
@ -739,6 +739,25 @@ Route::group(
|
|||
'uses' => 'PublicController@venues'
|
||||
]);
|
||||
|
||||
Route::get('/help/',[
|
||||
'as' =>'help',
|
||||
'uses' => 'HelpDeskController@create'
|
||||
]);
|
||||
|
||||
Route::post('/help/',[
|
||||
'as' =>'help.create',
|
||||
'uses' => 'HelpDeskController@store'
|
||||
]);
|
||||
|
||||
Route::get('/help/{code}',[
|
||||
'as' =>'help.show',
|
||||
'uses' => 'HelpDeskController@show'
|
||||
]);
|
||||
|
||||
Route::post('/help/{code}',[
|
||||
'as' =>'help.comment',
|
||||
'uses' => 'HelpDeskController@comment'
|
||||
]);
|
||||
// Route::get('/terms_and_conditions', [
|
||||
// 'as' => 'termsAndConditions',
|
||||
// function () {
|
||||
|
|
|
|||
|
|
@ -0,0 +1,32 @@
|
|||
@extends('Shared.Layouts.BilettmLayout',['folder' => 'desktop'])
|
||||
@section('content')
|
||||
{{\DaveJamesMiller\Breadcrumbs\Facades\Breadcrumbs::render('help')}}
|
||||
|
||||
<section class="movie-items-group firts-child" style="margin-bottom: 100px">
|
||||
<div class="container">
|
||||
<div class="row justify-content-center">
|
||||
<div class="col-6">
|
||||
<form action="{{route('help.create')}}" method="POST">
|
||||
@csrf
|
||||
<div class="form-group">
|
||||
{!! Form::label('title_ru', trans("Event.event_title_ru"), array('class'=>'control-label required')) !!}
|
||||
{!! Form::text('title_ru', Input::old('title_ru'),array('class'=>'form-control' )) !!}
|
||||
</div>
|
||||
<div class="form-group custom-theme">
|
||||
{!! Form::label('description_ru', trans("Event.event_description_ru"), array('class'=>'control-label required')) !!}
|
||||
{!! Form::textarea('description_ru', Input::old('description_ru'),
|
||||
array(
|
||||
'class'=>'form-control editable',
|
||||
'rows' => 5
|
||||
)) !!}
|
||||
</div>
|
||||
<div class="form-group address-automatic">
|
||||
{!! Form::label('venue_name', trans("Event.venue_name"), array('class'=>'control-label required ')) !!}
|
||||
{!! Form::select('venue_id',$categories->pluck('id','title'), Input::old('venue_id'), ['class' => 'form-control','id'=>'venue_name']) !!}
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
@endsection
|
||||
|
|
@ -38,6 +38,11 @@ Breadcrumbs::for('search',function($trail){
|
|||
$trail->push(trans('ClientSide.results'));//'Результат поиска'
|
||||
});
|
||||
|
||||
Breadcrumbs::for('help',function($trail){
|
||||
$trail->parent('home');
|
||||
$trail->push(trans('ClientSide.help'));
|
||||
});
|
||||
|
||||
Breadcrumbs::for('add_event',function($trail){
|
||||
$trail->parent('home');
|
||||
$trail->push('+ ДОБАВИТЬ СОБЫТИЕ');
|
||||
|
|
|
|||
Loading…
Reference in New Issue