@extends("admin.main") @section("content") @if(auth()->guard('admins')->user()->can("edit support")) @if($ticket->count())
@csrf
@foreach($ticket->all() as $item) @if($item->reply->isNotEmpty() && optional($item->reply->first())->user) @foreach($item->reply()->latest('id')->get() 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) @endif
@endforeach @endif @else
Access Denied - You are not assigned to any Support management department
@endif @endsection @push('scripts') @endpush