{{ __('pdf.purchase_report') }}

{{ __('pdf.generated_on') }} {{ now()->format('n/j/Y') }}
@forelse ($rows as $row) @empty @endforelse
{{ __('pdf.po') }} {{ __('common.supplier') }} {{ __('common.date') }} {{ __('common.item') }} {{ __('common.unit') }} {{ __('pdf.qty') }} {{ __('common.price') }} {{ __('pdf.discount') }} {{ __('pdf.tax') }} {{ __('pdf.transport') }} {{ __('common.other') }} {{ __('pdf.line_total') }} {{ __('pdf.grand_total') }} {{ __('common.paid') }} {{ __('pdf.due') }} {{ __('common.status') }}
{{ $row[0] ?? '' }} {{ $row[1] ?? '' }} @php try { echo ($row[2] ?? '') !== '' ? \Carbon\Carbon::parse($row[2])->format('n/j/Y') : ''; } catch (\Throwable $e) { echo $row[2] ?? ''; } @endphp {{ $row[3] ?? '' }} {{ $row[4] ?? '' }} {{ $row[5] !== '' && $row[5] !== null ? number_format((float) $row[5], 3) : '' }} {{ $row[6] !== '' && $row[6] !== null ? number_format((float) $row[6], 2) : '' }} {{ $row[7] !== '' && $row[7] !== null ? number_format((float) $row[7], 2) : '' }} {{ $row[8] !== '' && $row[8] !== null ? number_format((float) $row[8], 2) : '' }} {{ $row[9] !== '' && $row[9] !== null ? number_format((float) $row[9], 2) : '' }} {{ $row[10] !== '' && $row[10] !== null ? number_format((float) $row[10], 2) : '' }} {{ $row[11] !== '' && $row[11] !== null ? number_format((float) $row[11], 2) : '' }} {{ $row[12] ?? '' }} {{ $row[13] ?? '' }} {{ $row[14] ?? '' }} {{ $row[15] ?? '' }}
{{ __('common.no_records') }}