@extends('layouts.admin') @section('content')
عرض الرسالة رقم {{$contact->id}} القادمة من {{$contact->name}}
@if($contact->files()->count() !=0)
مرفقات
@include('admin.templates.attachments',['attachments'=>$contact->files])
@endif
@if($contact->user_id!=null) صورة المستخدم @else صورة المستخدم @endif
@if($contact->user_id!=null) {{$contact->user->name}} @else {{$contact->name }}
{{ $contact->email}}
{{$contact->phone}}
@endif
{{\Carbon::parse($contact->created_at)->diffForHumans()}}
{{$contact->message}}
@foreach($contact->replies as $reply)
{{\Carbon::parse($reply->created_at)->diffForHumans()}}
{{$reply->content}}
@if($reply->files()->count() !=0)
مرفقات
@include('admin.templates.attachments',['attachments'=>$reply->files])
@endif
@endforeach
{{--
@csrf
إرسال رد
مرفقات
--}}
@endsection