{{ $company }}

{!! $greeting !!}

@if(empty($tableData))

No invoice data available for this schedule.

@else @foreach ($tableData as $row) {{-- ✅ Safe Carbon parse --}} @endforeach
No Plant Distribution Type Customer Code Document Number Document Date Customer TradeName Customer Location Status
{{ $row['no'] }} {{ $row['plant'] }} {{ $row['distribution_type'] }} {{ $row['customer_code'] }} {{ $row['document_number'] }} @if(!empty($row['document_date']) && $row['document_date'] != '-') {{ \Carbon\Carbon::parse($row['document_date'])->format('d-M-Y') }} @else - @endif {{ $row['customer_trade_name'] }} {{ $row['customer_location'] }} {{ $row['status'] }}
@endif

{!! $wishes !!}