@extends('layouts.admin') @section('content')
الاتصالات
@can('contacts-update') @endcan @foreach($contacts as $contact) @can('contacts-update') @endcan @endforeach
#تمالمستخدم نوع التذكرة محتوى التذكرة تحكم
{{$contact->id}}
status=="DONE"?"checked":""}} data-id="{{$contact->id}}">
@if($contact->user_id!=null) صورة المستخدم {{$contact->user->name}} @else صورة المستخدم {{$contact->name}}
{{$contact->email}}
{{$contact->phone}}
@endif
{{$contact->type_enum == 'contact' ? 'طلب تواصل' : 'طلب إستشارة'}} {{mb_strimwidth($contact->message,0,80,'...')}}
آخر رد من : @php $last_reply= $contact->replies()->orderBy('id','DESC')->first(); @endphp @if($last_reply!=null) {{ $last_reply->is_support_reply==1?"الدعم الفني":$contact->name }}
{{ mb_strimwidth($last_reply->content,0,80,'...') }} @else {{$contact->name}} @endif
@can('contacts-read',$contact) مراسلة @endcan @can('contacts-delete',$contact)
@csrf @method("DELETE")
@endcan
{{$contacts->appends(request()->query())->render()}}
@endsection @section('scripts') {{-- @can('resolve') --}} {{-- @endcan --}} @endsection