@extends('layout') @section('body')
Statements:
@if($usr->role == 'admin' || $usr->role=='accounting')
@endif
@if($statements->isEmpty())
No data founded.
@else
@foreach($statements as $date => $stl)
{{date('m.d.y', strtotime($date))}}
@foreach($stl as $st) @endforeach
Holder Date Total File
@if($usr->role == 'admin' || $usr->role=='accounting') {{$st->fullname}} @else {{$st->fullname}} @endif {{date('m.d.y',strtotime($st->statedate))}} ${{$st->total?$st->total:0}} @if(file_exists(public_path('statementsfile/'.date('Y-m-d',strtotime($st->statedate)).'/'.$st->driver_id.'/StatementParentCustomReport.pdf'))) File @endif {{$st->files}}
@endforeach
@endif
@if($usr->role == 'admin' || $usr->role=='accounting') @endif @endsection @section('script') @endsection