@if (isset($delivery_notes) && count($delivery_notes) > 0) @endif @if(count($notes) > 0) @php $temp = false; foreach($notes as $note){ $temp = $note->from_note == 'EXTERNAL'; if($temp){ break; } } @endphp @endif @if (isset($line_item_notes) && count($line_item_notes) > 0) @endif
@foreach ($delivery_notes as $row) @if ($row->from_note == 'DELIVERY NOTE')

{{ $row->user?$row->user->fullname:"Customer" }} - {{ $row->date_created ? $row->date_created->format('h:i A m-d-Y'):\Carbon\Carbon::now()->format('h:i A m-d-Y') }}

{{ $row->note }}

@endif @endforeach
@foreach ($notes as $note) @if ($note->from_note == 'EXTERNAL')

{{ $note->user?$note->user->fullname:"Customer" }} - {{ $note->date_created->format('h:i A m-d-Y') }}

{{ $note->note }}

@endif @endforeach
@foreach ($line_item_notes as $row) @if ($row->from_note == 'LINE ITEM NOTE')

{{ $row->user?$row->user->fullname:"Customer" }} - {{ $row->date_created ? $row->date_created->format('h:i A m-d-Y'):\Carbon\Carbon::now()->format('h:i A m-d-Y') }}

{{ $row->note }}

Items

{{ $row->model_number }}

@endif @endforeach