@if ($items && $quantities)
@foreach ($items as $index => $item)
{{ $item }} x {{ $quantities[$index] }}
@endforeach
@endif
{{-- Position: {{ $jobs->position }} --}}
Personal Information
First Name: {{$orders->personalFirstname}} Last Name: {{$orders->personalLastname}} Company Name: {{$orders->personalCompanyname}} Personal Email: {{$orders->personalEmail}} Personal Number: {{$orders->personalNumber}}
{{-- Employment Set-Up: --}}
Billing Information
First Name: {{$orders->billFirstname}} Last Name: {{$orders->billLastname}} Address: {{$orders->billAddress}} Number: {{$orders->billNumber}} Payment Status: {{$orders->payment}} Date: {{$orders->created_at->format('M d,Y') }}
@if ($items && $quantities)
@foreach ($items as $index => $item)
@php
// Check for a matching product by 'model'
$matchedProduct = $products->firstWhere(
'model',
$item,
);
@endphp
@if ($matchedProduct)
{{ $item }} x
{{ $quantities[$index] }} -
₱{{ number_format($matchedProduct->price, 2) }}
@else
{{ $item }}
(Not Found)
@endif
@endforeach
@endif
Total Amount: ₱{{$orders->total_amount}}