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">
|
2020-05-15 09:07:25 +00:00
|
|
|
<div>
|
2020-05-15 09:39:59 +00:00
|
|
|
<p style="width: 120px; float: right;">
|
|
|
|
|
<strong class="d-block">{{$ticket->owner}} </strong>
|
|
|
|
|
<small class="d-block">{{$ticket->created_at->diffForHumans()}}</small>
|
|
|
|
|
</p>
|
|
|
|
|
<div style="width: calc(100% - 120px);">
|
2020-05-15 09:47:15 +00:00
|
|
|
<p class="message-one-right" style="margin-bottom: -8px; position: relative; width: calc(100% - 50px); background-color: #e3e3e3; color: #000000; padding: 10px 30px; border-radius: 5px;">{{$ticket->text}}</p>
|
2020-05-15 09:39:59 +00:00
|
|
|
</div>
|
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-15 09:07:25 +00:00
|
|
|
<div>
|
2020-05-15 09:42:32 +00:00
|
|
|
<p style="width: 120px; @if($comment->user_id) float: left; @else float: right; @endif">
|
2020-05-15 09:39:59 +00:00
|
|
|
<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:42:32 +00:00
|
|
|
<div style="width: calc(100% - 120px); @if($comment->user_id) float: left; @endif">
|
2020-05-15 09:39:59 +00:00
|
|
|
<p class="@if($comment->user_id) message-one-left @else message-one-right @endif"
|
2020-05-15 09:53:47 +00:00
|
|
|
style="@if($comment->user_id) background-color: #d43d34; color: #ffffff; @else margin-bottom: -8px; background-color: #e3e3e3; color: #000000; @endif position: relative; width: calc(100% - 50px); padding: 10px 30px; border-radius: 5px;">{{$comment->text}}</p>
|
2020-05-15 09:39:59 +00:00
|
|
|
</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
|