@component('pdf.components.style') @endcomponent

{{$company->name}}

Date Range: {{date('M d, Y', strtotime($start))}} - {{date('M d, Y', strtotime($end))}}

Report Type: {{$report_type}}

@foreach($filter_data as $filter)

{{$filter['label']}} : {{$filter['value']}}

@endforeach
{{$subtitle_name}}
@php $tables = []; @endphp @if ($data['with_breakdown'] == 1) @php $tables = $data['data']; @endphp @else @php $tables = [ [ 'name' => null, 'data' => $data['data'], 'total' => $data['total'] ] ]; @endphp @endif @foreach ($tables as $table) @if ($table['name'])

{{$table['name']}}

@endif @forelse ($table['data'] as $item) @if ($item['type'] == 'return') @else @endif @empty @endforelse
Payment Date Order Number Payment Method Amount
{{ date('m/d/Y', strtotime($item['payment_date'])) }} {{ $item['order_no'] }} {{ $item['payment_method'] }} ${{ number_format($item['amount'],2) }}
No Data
Total ${{number_format($table['total'],2)}}
@endforeach