OBE BALE RELEASING REQUEST

To Mr. CHAMBERLAIN M.D
KINDLY DELIVER THE BALES

BRR NO {{ $obeinvoice->brr_no }}
BRR DATE {{ \Carbon\Carbon::parse($obeinvoice->inv_date)->format('d.m.Y') }}
SI NO {{ $obeinvoice->si_no }}
SI DATE {{ \Carbon\Carbon::parse($obeinvoice->inv_date)->format('d.m.Y') }}
REF NO {{ $obeinvoice->ref_no }}


FROM: OM BALAMURUGAN EXPORTS
PH: +91 9600720440
TO: {{ $obeinvoice->name }}
PH: {{ $obeinvoice->phone_no }}

@php $totabales = 0; $allBaleNos = []; foreach ($obeinvoice_list as $index => $item) { $bales = json_decode($item->bale_no); foreach ($bales as $bale) { $bale = trim($bale); $allBaleNos[$bale][] = $index; } } $markedFirstIndexes = []; foreach ($obeinvoice_list as $index => $item) { $bales = json_decode($item->bale_no); foreach ($bales as $bale) { $bale = trim($bale); $occurrences = $allBaleNos[$bale]; $counts = count($occurrences); if ($counts > 1) { $firstIndex = $occurrences[0]; if ($index == $firstIndex && !in_array($index, $markedFirstIndexes)) { $obeinvoice_list[$index]->duplicate_count = $counts; $markedFirstIndexes[] = $index; } elseif ($index != $firstIndex) { $obeinvoice_list[$index]->duplicate_count = 0; } break; } } } @endphp @foreach ($obeinvoice_list as $data) @php $totabales += $data->no_of_bale; $baleNumbers = json_decode($data->bale_no, true); @endphp @if (isset($data->duplicate_count) && $data->duplicate_count != 0) @elseif (!isset($data->duplicate_count)) @endif @endforeach
S.NO ITEM BALE NO’S TOTAL BALES
{{ $loop->iteration }} {{ $data->product_name }}{{ implode(', ', $baleNumbers) }} {{ $data->no_of_bale }}{{ implode(', ', $baleNumbers) }} {{ $data->no_of_bale }}
TOTAL NUMBER OF BALES {{ $count }}


@php $signaturePath = public_path('assets1/images/signature1.jpg'); @endphp @if(file_exists($signaturePath)) Signature @else

Signature image not found.

@endif