@for($i = 0; $i < count($growers); $i++)
{{ $client->name }}
P.O.BOX 186
MPANDA-KATAVI
Phone;+255 625 018 838
Email;katumbaamcos@gmail.com
FARMER'S VOUCHER / HATI YA MAUZO
JINA LA MKULIMA: {{ strtoupper($growers[$i]['name']) }}          TTB No: {{ $growers[$i]['regNumber'] }}
JINA LA KIJIJI: {{ strtoupper($growers[$i]['location']) }}       SOKO LA: {{ $sale }}
TAREHE YA SOKO: {{ date('d/m/Y', strtotime($saleDate)) }}      


@php $sno = 0 @endphp @php $tbales = 0 @endphp @php $tmass = 0 @endphp @php $tvalue = 0 @endphp @foreach($growers[$i]['tickets'] as $ticket) @php $sno += 1 @endphp @endforeach
S/NO NAMBA YA TICKET UZITO(KGs) DARAJA BEI(USD) THAMANI(USD)
{{ $sno }} {{ strtoupper($ticket['barcode']) }} {{ number_format($ticket['mass'], 2, '.', ',') }} @if($ticket['price'] > 0) @php $tmass += $ticket['mass'] @endphp @endif {{ $ticket['grade'] }} {{ number_format($ticket['price'], 3, '.', ',') }} {{ number_format($ticket['value'], 3, '.', ',') }} @php $tvalue += $ticket['value'] @endphp
JUMLA {{ number_format($tmass, 2, '.', ',') }} {{ number_format($tvalue, 3, '.', ',') }}
JINA LA KARANI WA ENEO

                                                                               


SAHIHI                                                               
JINA LA MJUMBE WA BODI

                                                                              


SAHIHI                                                               
@endfor