@include('header')
@php $total_tarifa = 0; $total_entregado = 0; $total_saldo = 0; @endphp @foreach($dataTabla as $data) @endforeach
Pasajero Ofrecido Contratado Tarifa Entregado Saldo
{{$data['apellido'] ?? ''}}, {{$data['nombre']}} @php $checked = ""; @endphp @if ($data['ofrecido'] == 1) @php $checked = "checked"; @endphp @endif @php $checked = ""; @endphp @if ($data['contratado'] == 1) @php $checked = "checked"; @endphp @endif @if ($data['tarifa'] > 0) ${{number_format($data['tarifa'], 2, ',', '.')}} @php $total_tarifa = $total_tarifa + $data['tarifa']; @endphp @else - @endif @if ($data['tarifa'] > 0) ${{number_format($data['entregado'], 2, ',', '.')}} @php $total_entregado = $total_entregado + $data['entregado']; @endphp @else - @endif @if ($data['tarifa'] > 0) ${{number_format($data['saldo'], 2, ',', '.')}} @php $total_saldo = $total_saldo + $data['saldo']; @endphp @else - @endif
TOTAL TARIFA ${{number_format($total_tarifa, 2, ',', '.')}} TOTAL ENTREGADO ${{number_format($total_entregado, 2, ',', '.')}} TOTAL SALDO ${{number_format($total_saldo, 2, ',', '.')}}
@include('footer') @if (!empty($idRecibo)) @endif