@php use App\Http\Helpers\Helper; @endphp @extends("frontend.layouts.master") @section("content") @if($ticket->count())
@foreach($ticket->all() as $item) @if($item->Reply && $item->Reply->first() && $item->Reply->first()->User) @foreach($item->Reply as $_item)
{{ $_item->User->firstname .' '.$_item->User->lastname }}
Quản trị viên
{{ $_item->created_at }}
{!! $_item->message !!}
@endforeach @endif
{{ $item->Customer->firstname .' '.$item->Customer->lastname }}
Khách hàng
{{ $item->created_at }}
{!! $item->description !!}
@php($data = json_decode($item->data)) @if($data->file)
@php($file_info = pathinfo(url('template/' . $data->file)))
Attachment
{{ $file_info['basename'] }}
{{ filesize(public_path('template/' . $data->file))*0.001 }} KB
@endif
@endforeach

Thông tin Ticket

Người yêu cầu

{{ $ticket->first()->Customer->firstname .' '.$ticket->first()->Customer->lastname }}

Phòng ban

{{ $ticket->first()->room }}

Đã Gửi

{{ $ticket->last()->created_at }}

Lần cập nhật cuối

{{ $ticket->first()->created_at }}

Tình trạng

{!! Helper::get_ticket_status($ticket->first()->status,$ticket->first()->Reply->first()) !!}
Trở về
@csrf @method('put')
@endif @endsection @push('viewScripts') @endpush