@foreach($registers as $item) @php $amountBRL = number_format(($item->amountBRL), 2, ',', '.'); $correctionPrice = number_format(($item->correctionPrice * $item->correctionQty), 2, ',', '.'); $totalAmountBRL = number_format(($item->amountBRL + ($item->correctionPrice * $item->correctionQty)), 2, ',', '.'); @endphp @endforeach
Status Payment Type Process Number Extra
Payment
User Client Carrier Booking POL POD Incoterm BL Date Request Date Correction Fee Amount USD Amount BRL Dollar Rate Total Amount Tipo de Conta
@if($item->payment_type == 'Local Charges' ) @elseif($item->payment_type == 'Hauling' ) @elseif($item->payment_type == 'Other Services' ) @elseif($item->payment_type == 'Stuffing') @elseif($item->status == 'Done') @endif @can('internalRoutineAllManagers', App\Usuario::class) id}}> @endcan {{ $item->status ?? '-'}} {{ $item->payment_type }} {{ $item->SAOE }} @if ($item->status == 'Extra Payment') - @else @can('internalRoutine', App\Usuario::class) @if($item->payment_type == 'Local Charges') @elseif($item->payment_type == 'Hauling') @elseif($item->payment_type == 'Stuffing') @endif @else @endcan @endif {{ isset($item->usuarios->nome) ? str_limit($item->usuarios->nome, $limit = 10, $end = '...') : '-' }} {{ isset($item->loading_requests->clients->fantasyName) ? str_limit($item->loading_requests->clients->fantasyName, $limit = 10, $end = '...') : (isset($item->loading_requests->clients->name) ? str_limit($item->loading_requests->clients->name, $limit = 10, $end = '...') : '') }} {{ $item->loading_requests->carriers->descricao ?? '-' }} {{ $item->loading_requests->booking ?? '-'}} {{ $item->loading_requests->loading_ports->descricao ?? '-' }} {{ isset($item->loading_requests->code_of_ports1->place) ? $item->loading_requests->code_of_ports1->place .', '. $item->loading_requests->code_of_ports1->country : '-' }} {{ $item->loading_requests->incoterms->description ?? '-'}} {{ isset( $item->loading_requests->loading_confirmations ) && $item->loading_requests->loading_confirmations->pluck('BlDate') && count($item->loading_requests->loading_confirmations->pluck('BlDate')) > 0 ? date( 'd-m-Y' , strtotime($item->loading_requests->loading_confirmations->pluck('BlDate')->implode(' '))) : '-' }} {{ isset($item->emailRequestDate) ? date( 'd-m-Y' , strtotime($item->emailRequestDate)) : '-' }}{!! $correctionPrice ? $correctionPrice : '-' !!} {!! number_format(($item->amount ? $item->amount : 0),2,',','.') !!} {!! $amountBRL ? $totalAmountBRL : 0 !!} {!! number_format(($item->dollarRate ? $item->dollarRate : 0),5,',','.') !!} {!! number_format(( $item->dollarRate ? (($item->amount * $item->dollarRate) + ($item->amountBRL + ($item->correctionPrice * $item->correctionQty))) : 0) ,2,',','.') !!} {{ $item->accounting_type ?? '-'}}