@extends('admin.layouts.master') @section('content') @include('admin.layouts.breadcrumbs',['contract_id'=>request()->get('contract_id')])

@can('create reports') أضف تقرير @endcan

@foreach($reports as $report)
@php Date::setLocale('ar'); @endphp {{\Jenssegers\Date\Date::create($report->created_at->toDateTimeString())->diffForHumans()}} @can('edit reports') @endcan @can('delete reports') حذف
{{csrf_field()}} {{method_field('DELETE')}}
@endcan
avtar img holder

{{$report->user->name}}

{{$report->created_at}}

{{$report->content}}

@if($report->files != null) @foreach(unserialize($report->files) as $file) @if(strstr(mime_content_type($file), "video/"))
{{-- --}} {{--
--}} {{-- --}} {{--
--}} {{-- --}} @else @endif @endforeach @else @endif
{{--
--}} {{--
--}} {{-- @foreach(unserialize($report->files) as $file)--}} {{--
--}} {{-- @if(strstr(mime_content_type($file), "video/"))--}} {{-- --}} {{-- @else--}} {{-- banner--}} {{-- @endif--}} {{--
--}} {{-- @endforeach--}} {{--
--}} {{-- --}} {{--
--}} {{--
--}} {{--
--}} @foreach($report->comments()->orderBy('id','desc')->get() as $comment)
Avatar
{{$comment->user->name}}
{{$comment->comment}}
{{$comment->created_at}}

@endforeach
{{csrf_field()}}
@endforeach
@endsection