help desk HelpdeskTicket Comment

This commit is contained in:
merdan 2020-05-08 17:05:15 +05:00
parent 0581fce93c
commit d8cc2d191f
8 changed files with 61 additions and 11 deletions

View File

@ -756,6 +756,7 @@ Route::group(
'as' =>'help.comment', 'as' =>'help.comment',
'uses' => 'HelpDeskController@comment' 'uses' => 'HelpDeskController@comment'
]); ]);
// Route::get('/terms_and_conditions', [ // Route::get('/terms_and_conditions', [
// 'as' => 'termsAndConditions', // 'as' => 'termsAndConditions',
// function () { // function () {

View File

@ -156,4 +156,15 @@ return [
'checkout_fail_button' => 'Contact us', 'checkout_fail_button' => 'Contact us',
'redirect_payment_message' =>'Redirecting to payment gateway', 'redirect_payment_message' =>'Redirecting to payment gateway',
'organiser' => 'Organiser', 'organiser' => 'Organiser',
'support' => 'Tech. support',
'submit_ticket' => 'Submit ticket',
'support_form_text' => 'Lorem ipsum dolor sit amet, consectetur adipisicing elit. Doloremque libero mollitia nemo, nobis odit quasi quidem quisquam sunt. Cupiditate dolores nisi nostrum officiis provident quasi recusandae unde voluptate. Eos, suscipit!',
'support_topic' => 'Topic',
'choose_support_topic' => 'Please chose topic',
'other' => 'Other',
'attachment' => 'attachment',
'support_subject' => 'Subject',
'reply' => 'Reply',
'new_ticket' => 'New ticket',
]; ];

View File

@ -163,4 +163,15 @@ return [
'search_result' => 'Результат поиска по', 'search_result' => 'Результат поиска по',
'search_showing' => 'Видно на странице', 'search_showing' => 'Видно на странице',
'organiser' => 'Организатор', 'organiser' => 'Организатор',
'support' => 'Tech. support',
'submit_ticket' => 'Submit ticket',
'support_form_text' => 'Lorem ipsum dolor sit amet, consectetur adipisicing elit. Doloremque libero mollitia nemo, nobis odit quasi quidem quisquam sunt. Cupiditate dolores nisi nostrum officiis provident quasi recusandae unde voluptate. Eos, suscipit!',
'support_topic' => 'Topic',
'choose_support_topic' => 'Please chose topic',
'other' => 'Other',
'attachment' => 'attachment',
'support_subject' => 'Subject',
'reply' => 'Reply',
'new_ticket' => 'New ticket',
]; ];

View File

@ -168,4 +168,15 @@ sargydyňyz Bank tarapyndan ýatyrylandyr. Biletleri täzeden satyn almaga synan
'search_result' => 'Gözleg netijesi:', 'search_result' => 'Gözleg netijesi:',
'search_showing' => 'Sahypada görkezileni', 'search_showing' => 'Sahypada görkezileni',
'organiser' => 'Gurnaýjy', 'organiser' => 'Gurnaýjy',
'support' => 'Tech. support',
'submit_ticket' => 'Submit ticket',
'support_form_text' => 'Lorem ipsum dolor sit amet, consectetur adipisicing elit. Doloremque libero mollitia nemo, nobis odit quasi quidem quisquam sunt. Cupiditate dolores nisi nostrum officiis provident quasi recusandae unde voluptate. Eos, suscipit!',
'support_topic' => 'Topic',
'choose_support_topic' => 'Please chose topic',
'other' => 'Other',
'attachment' => 'attachment',
'support_subject' => 'Subject',
'reply' => 'Reply',
'new_ticket' => 'New ticket',
]; ];

View File

@ -100,7 +100,7 @@
<p class="help-block">{{ $errors->first('text') }}</p> <p class="help-block">{{ $errors->first('text') }}</p>
@endif @endif
</div> </div>
{!! Form::submit(trans("ClientSide.create_ticket"), ['class'=>"btn btn-success"]) !!} {!! Form::submit('Submit', ['class'=>"btn btn-success"]) !!}
</form> </form>
</div> </div>
</div> </div>

View File

@ -4,8 +4,20 @@
<section class="movie-items-group firts-child my-5"> <section class="movie-items-group firts-child my-5">
<div class="container"> <div class="container">
<div class="row justify-content-around">
<div>
<h1>
@lang('ClientSide.support')
</h1>
</div>
<div>
<form action="{{route('help.show')}}" method="GET">
{!! Form::input('code', null, array(['class'=>'form-control'])) !!}}
</form>
</div>
</div>
<div class="row justify-content-center"> <div class="row justify-content-center">
<p class="my-4">Lorem ipsum dolor sit amet, consectetur adipisicing elit. Doloremque libero mollitia nemo, nobis odit quasi quidem quisquam sunt. Cupiditate dolores nisi nostrum officiis provident quasi recusandae unde voluptate. Eos, suscipit!</p> <p class="my-4">@lang('ClientSide.support_form_text')</p>
<div class="col-6"> <div class="col-6">
<form action="{{route('help.create')}}" method="POST" enctype="multipart/form-data"> <form action="{{route('help.create')}}" method="POST" enctype="multipart/form-data">
@csrf @csrf
@ -27,18 +39,18 @@
</div> </div>
<div class="form-group {{ ($errors->has('topic')) ? 'has-error' : '' }}"> <div class="form-group {{ ($errors->has('topic')) ? 'has-error' : '' }}">
{!! Form::label('topic', trans("ClientSide.topic"), array('class'=>'control-label')) !!} {!! Form::label('topic', trans("ClientSide.support_topic"), array('class'=>'control-label')) !!}
{!! Form::select('topic',help_topics(), old('topic'), ['placeholder'=>trans('ClientSide.please_select'),'class' => 'form-control','id'=>'topic']) !!} {!! Form::select('topic',help_topics(), old('topic'), ['placeholder'=>trans('ClientSide.please_select'),'class' => 'form-control','id'=>'topic']) !!}
@if($errors->has('topic')) @if($errors->has('topic'))
<p class="help-block">{{ $errors->first('topic') }}</p> <p class="help-block">{{ $errors->first('topic') }}</p>
@endif @endif
</div> </div>
<div class="form-group d-none"> <div class="form-group d-none">
{!! Form::label('subject', trans("ClientSide.subject"), array('class'=>'control-label')) !!} {!! Form::label('subject', trans("ClientSide.support_subject"), array('class'=>'control-label')) !!}
{!! Form::text('subject', old('subject',trans('ClientSide.other')),array('class'=>'form-control' )) !!} {!! Form::text('subject', old('subject',trans('ClientSide.other')),array('class'=>'form-control' )) !!}
</div> </div>
<div class="form-group custom-theme {{ ($errors->has('text')) ? 'has-error' : '' }}"> <div class="form-group custom-theme {{ ($errors->has('text')) ? 'has-error' : '' }}">
{!! Form::label('text', trans("ClientSide.text"), array('class'=>'control-label required')) !!} {!! Form::label('text', trans("ClientSide.message"), array('class'=>'control-label required')) !!}
{!! Form::textarea('text', old('text'), {!! Form::textarea('text', old('text'),
array( array(
'class'=>'form-control editable', 'class'=>'form-control editable',
@ -55,7 +67,7 @@
<p class="help-block">{{ $errors->first('attachment') }}</p> <p class="help-block">{{ $errors->first('attachment') }}</p>
@endif @endif
</div> </div>
{!! Form::submit(trans("ClientSide.create_ticket"), ['class'=>"btn btn-success"]) !!} {!! Form::submit(trans("ClientSide.submit_ticket"), ['class'=>"btn btn-success"]) !!}
</form> </form>

View File

@ -9,7 +9,8 @@
<div class="row"> <div class="row">
<div class="col-lg-8 col-md-8"> <div class="col-lg-8 col-md-8">
<div class="alert alert-info" role="alert"> <div class="alert alert-info" role="alert">
<p><strong>{{$ticket->owner}} : </strong>{{$ticket->text}}</p> <p><strong>{{$ticket->owner}} : </strong> <small>{{$ticket->created_at->diffForHumans()}}</small></p>
<p>{{$ticket->text}}</p>
<br> <br>
@if($ticket->attachment) @if($ticket->attachment)
<span><strong>Attachment:</strong> <a href="{{asset('user_content/'.$entry->attachment)}}">{{$entry->attachment}}</a></span> <span><strong>Attachment:</strong> <a href="{{asset('user_content/'.$entry->attachment)}}">{{$entry->attachment}}</a></span>
@ -21,7 +22,10 @@
<div class="row"> <div class="row">
<div class="@if($comment->user_id)col-lg-offset-4 col-md-offset-4 @endif col-lg-8 col-md-8"> <div class="@if($comment->user_id)col-lg-offset-4 col-md-offset-4 @endif col-lg-8 col-md-8">
<div class="alert alert-success" role="alert"> <div class="alert alert-success" role="alert">
<p><strong>{{$comment->name}} : </strong>{{$comment->text}}</p><br> <p><strong>{{$comment->name}} : </strong><small>{{$comment->created_at->diffForHumans()}}</small></p>
<p>{{$comment->text}}</p>
<br>
@if($comment->attachment) @if($comment->attachment)
<span><strong>Attachment:</strong> <a href="{{asset('user_content/'.$comment->attachment)}}">{{$comment->attachment}}</a></span> <span><strong>Attachment:</strong> <a href="{{asset('user_content/'.$comment->attachment)}}">{{$comment->attachment}}</a></span>
@endif @endif
@ -35,7 +39,7 @@
<form action="{{route('help.comment',['code' => $ticket->code])}}" method="post" enctype="multipart/form-data"> <form action="{{route('help.comment',['code' => $ticket->code])}}" method="post" enctype="multipart/form-data">
@csrf @csrf
<div class="form-group custom-theme {{ ($errors->has('text')) ? 'has-error' : '' }}"> <div class="form-group custom-theme {{ ($errors->has('text')) ? 'has-error' : '' }}">
{!! Form::label('text', trans("ClientSide.text"), array('class'=>'control-label required')) !!} {!! Form::label('text', trans("ClientSide.message"), array('class'=>'control-label required')) !!}
{!! Form::textarea('text', old('text'), {!! Form::textarea('text', old('text'),
array( array(
'class'=>'form-control editable', 'class'=>'form-control editable',
@ -52,7 +56,7 @@
<p class="help-block">{{ $errors->first('attachment') }}</p> <p class="help-block">{{ $errors->first('attachment') }}</p>
@endif @endif
</div> </div>
{!! Form::submit(trans("ClientSide.create_ticket"), ['class'=>"btn btn-success"]) !!} {!! Form::submit(trans("ClientSide.reply"), ['class'=>"btn btn-success"]) !!}
</form> </form>
</div> </div>
</div> </div>

View File

@ -40,7 +40,7 @@ Breadcrumbs::for('search',function($trail){
Breadcrumbs::for('help',function($trail){ Breadcrumbs::for('help',function($trail){
$trail->parent('home'); $trail->parent('home');
$trail->push(trans('ClientSide.help')); $trail->push(trans('ClientSide.support'));
}); });
Breadcrumbs::for('add_event',function($trail){ Breadcrumbs::for('add_event',function($trail){