2020-04-30 12:39:58 +00:00
|
|
|
@extends('Shared.Layouts.BilettmLayout',['folder' => 'desktop'])
|
|
|
|
|
@section('content')
|
|
|
|
|
{{\DaveJamesMiller\Breadcrumbs\Facades\Breadcrumbs::render('help')}}
|
|
|
|
|
<section class="movie-items-group firts-child my-5">
|
|
|
|
|
<div class="container">
|
2020-05-15 07:52:28 +00:00
|
|
|
<div class="row justify-content-between w-100 m-auto">
|
2020-05-08 12:42:47 +00:00
|
|
|
<div>
|
|
|
|
|
<h1>
|
|
|
|
|
@lang('ClientSide.support') : {{$ticket->code}}
|
|
|
|
|
</h1>
|
2020-05-15 07:52:28 +00:00
|
|
|
<div style="height: 4px;width: 100px;background-color: #d43d34;"></div>
|
2020-05-08 12:42:47 +00:00
|
|
|
</div>
|
|
|
|
|
<div>
|
|
|
|
|
<form action="{{route('help.show',['code'=>''])}}" method="GET">
|
2020-05-08 14:04:33 +00:00
|
|
|
{!! Form::text('code', null, array('class'=>'form-control')) !!}}
|
2020-05-08 12:42:47 +00:00
|
|
|
</form>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
2020-05-15 08:14:43 +00:00
|
|
|
<div class="row w-100 m-auto" style="margin-top: 20px !important;">
|
|
|
|
|
<div class="card w-100">
|
2020-05-08 09:53:07 +00:00
|
|
|
<div class="card-body">
|
2020-05-15 08:44:15 +00:00
|
|
|
<div class="row justify-content-end">
|
2020-05-08 09:53:07 +00:00
|
|
|
<div class="col-lg-8 col-md-8">
|
|
|
|
|
<div class="alert alert-info" role="alert">
|
2020-05-15 08:51:51 +00:00
|
|
|
<p><strong class="d-block">{{$ticket->owner}} </strong><small class="d-block">{{$ticket->created_at->diffForHumans()}}</small></p>
|
2020-05-08 12:05:15 +00:00
|
|
|
<p>{{$ticket->text}}</p>
|
2020-05-08 09:53:07 +00:00
|
|
|
<br>
|
|
|
|
|
@if($ticket->attachment)
|
|
|
|
|
<span><strong>Attachment:</strong> <a href="{{asset('user_content/'.$entry->attachment)}}">{{$entry->attachment}}</a></span>
|
|
|
|
|
@endif
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
@foreach($ticket->comments as $comment)
|
2020-05-15 08:55:54 +00:00
|
|
|
<div class="row @if($comment->user_id)justify-content-start @else justify-content-end @endif ">
|
2020-05-15 09:00:36 +00:00
|
|
|
<div class="col-lg-8 col-md-8">
|
2020-05-08 09:53:07 +00:00
|
|
|
<div class="alert alert-success" role="alert">
|
2020-05-15 08:51:51 +00:00
|
|
|
<p><strong class="d-block">{{$comment->name}} </strong> <small class="d-block">{{$comment->created_at->diffForHumans()}}</small></p>
|
2020-05-08 12:05:15 +00:00
|
|
|
|
2020-05-15 09:00:36 +00:00
|
|
|
<div><p>{{$comment->text}}</p></div>
|
2020-05-08 12:05:15 +00:00
|
|
|
<br>
|
2020-05-08 09:53:07 +00:00
|
|
|
@if($comment->attachment)
|
|
|
|
|
<span><strong>Attachment:</strong> <a href="{{asset('user_content/'.$comment->attachment)}}">{{$comment->attachment}}</a></span>
|
|
|
|
|
@endif
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
@endforeach
|
|
|
|
|
</div>
|
2020-04-30 12:39:58 +00:00
|
|
|
|
2020-05-08 09:53:07 +00:00
|
|
|
<div class="card-footer">
|
2020-05-08 10:59:06 +00:00
|
|
|
<form action="{{route('help.comment',['code' => $ticket->code])}}" method="post" enctype="multipart/form-data">
|
2020-05-08 09:53:07 +00:00
|
|
|
@csrf
|
|
|
|
|
<div class="form-group custom-theme {{ ($errors->has('text')) ? 'has-error' : '' }}">
|
2020-05-08 12:05:15 +00:00
|
|
|
{!! Form::label('text', trans("ClientSide.message"), array('class'=>'control-label required')) !!}
|
2020-05-08 09:53:07 +00:00
|
|
|
{!! Form::textarea('text', old('text'),
|
|
|
|
|
array(
|
|
|
|
|
'class'=>'form-control editable',
|
|
|
|
|
'rows' => 5
|
|
|
|
|
)) !!}
|
|
|
|
|
@if($errors->has('text'))
|
|
|
|
|
<p class="help-block">{{ $errors->first('text') }}</p>
|
|
|
|
|
@endif
|
|
|
|
|
</div>
|
2020-05-08 10:59:06 +00:00
|
|
|
<div class="form-group {{ ($errors->has('attachment')) ? 'has-error' : '' }}">
|
|
|
|
|
{!! Form::label('attachment', trans("ClientSide.attachment"), array('class'=>'control-label')) !!}
|
|
|
|
|
{!! Form::file('attachment') !!}
|
|
|
|
|
@if($errors->has('attachment'))
|
|
|
|
|
<p class="help-block">{{ $errors->first('attachment') }}</p>
|
|
|
|
|
@endif
|
|
|
|
|
</div>
|
2020-05-08 12:05:15 +00:00
|
|
|
{!! Form::submit(trans("ClientSide.reply"), ['class'=>"btn btn-success"]) !!}
|
2020-05-08 09:53:07 +00:00
|
|
|
</form>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
2020-04-30 12:39:58 +00:00
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</section>
|
|
|
|
|
@endsection
|
2020-05-01 11:32:41 +00:00
|
|
|
@section('after_scripts')
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@endsection
|