@forelse($contract->damageReports as $report)
{{ $report->report_number }}
{{ $reportTypeLabels[$report->report_type] ?? $report->report_type }}
{{ $statusLabels[$report->status] ?? $report->status }}
{{ optional($report->inspected_at)->format('Y-m-d H:i') ?? __('contracts.pdf.empty.no_date') }}
| # |
{{ __('contracts.pdf.tables.zone') }} |
{{ __('contracts.pdf.tables.view') }} |
{{ __('contracts.pdf.tables.type') }} |
{{ __('contracts.pdf.tables.severity') }} |
{{ __('contracts.pdf.tables.qty') }} |
{{ __('contracts.pdf.tables.estimated_cost') }} |
{{ __('contracts.pdf.tables.notes') }} |
@forelse($report->items as $index => $item)
| {{ $index + 1 }} |
{{ $zoneLabels[$item->zone_code] ?? $item->zone_code }} |
{{ $viewSideLabels[$item->view_side] ?? $item->view_side }} |
{{ $damageTypeLabels[$item->damage_type] ?? $item->damage_type }} |
{{ $severityLabels[$item->severity] ?? $item->severity }} |
{{ (int) $item->quantity }} |
@if($item->estimated_cost !== null)
{{ $currencySymbol }}{{ number_format((float) $item->estimated_cost, 2) }}
@else
-
@endif
|
{{ $item->notes ?? '-' }} |
@empty
| {{ __('contracts.pdf.empty.no_damage_items') }} |
@endforelse
{{ __('contracts.pdf.damage_total_quantity', ['quantity' => (int) $report->items->sum('quantity')]) }}
@empty
{{ __('contracts.pdf.empty.no_damage_reports') }}
@endforelse