@php @endphp Trades Weekly Report
@include('common.address')

Weekly Work Sheet

{{--
--}}
{{--{{$data[5]->user->name}}--}} @foreach($period as $date) @endforeach @for($index=0; $indexdata; //dd($rows[0]); @endphp @foreach($period as $date) @php $running_date=$date->format('Y-m-d'); $title='-'; $detail=''; @endphp @foreach($rows as $row) @php $user_date=$row->date; if($running_date==$user_date){ $title=$row->title; $detail=$row->detail; break; }else{ $title='-'; } @endphp @endforeach @if($title=='-') @else @endif @endforeach {{-- @foreach($period as $date) @endforeach--}} @endfor {{--@foreach($data as $row) --}}{{-- --}}{{-- @endforeach--}}
User{{$date->format('jS F l')}}
{{$data[$index]->user->name}} - {{$title}}
{{$detail}}
{{$date->format('jS F l')}}
{{$row->user->name}} {{$row->title}}
{{$row->date}}