@include('header')

Rendiciones del Viaje

Coordinador: @if ($coordinador) {{ $coordinador->nombre ?? '' }} @else @endif

{{-- Ingresos --}}

Ingresos

@php $total_ingresos = 0; @endphp @forelse ($ingresos as $rend_ingresos) @php $total_ingresos += ($rend_ingresos->cant ?? 1) * ($rend_ingresos->costo ?? 0) * ($tipo_cambio); @endphp @empty @endforelse @if ($ingresos->count() > 0) @endif
Cantidad Monto Tipo Cambio Detalle Total
{{ $rend_ingresos->moneda }} @php $tipo_cambio = $rend_ingresos->tipo_cambio ?? 1; @endphp ${{ number_format(($rend_ingresos->costo * $rend_ingresos->cant * $tipo_cambio) ?? 0, 2, ',', '.') }}
No hay ingresos cargados aún.
Total: ${{ number_format($total_ingresos, 2, ',', '.') }}
{{-- Egresos --}}

Egresos

@php $total_egresos = 0; @endphp @forelse ($egresos as $rend_egresos) @php $total_egresos += ($rend_egresos->cant ?? 1) * ($rend_egresos->costo ?? 0) * ($tipo_cambio); @endphp @empty @endforelse @if ($egresos->count() > 0) @endif
Cantidad Monto Tipo Cambio Detalle Total
{{ $rend_egresos->moneda }} @php $tipo_cambio = $rend_egresos->tipo_cambio ?? 1; @endphp ${{ number_format(($rend_egresos->costo * $rend_egresos->cant * $tipo_cambio) ?? 0, 2, ',', '.') }}
No hay egresos cargados aún.
Total: ${{ number_format($total_egresos, 2, ',', '.') }}
{{-- Total --}} @php $total_ing_egr = ($total_ingresos ?? 0) - ($total_egresos ?? 0); $color = ($total_ing_egr == 0 ? 'text-yellow-500' : ($total_ing_egr > 0 ? 'text-green-600' : 'text-red-600')); $signo_negativo = ''; if ($total_ing_egr < 0) { $total_ing_egr = $total_ing_egr * (-1); $signo_negativo = '-'; } @endphp

Total: {{ $signo_negativo }}${{ number_format($total_ing_egr, 2, ',', '.') }}

{{-- Entregas --}}

Entregas

@php $total_entregas = 0; @endphp @forelse ($entregas as $rend_entregas) @php $total_entregas += ($rend_entregas->cant ?? 1) * ($rend_entregas->costo ?? 0) * ($tipo_cambio); @endphp @empty @endforelse @if ($entregas->count() > 0) @endif
Detalle Monto Tipo Cambio Entregó Total
{{ $rend_entregas->moneda }} @php $tipo_cambio = $rend_entregas->tipo_cambio ?? 1; @endphp ${{ number_format(($rend_entregas->costo * $rend_entregas->cant * $tipo_cambio) ?? 0, 2, ',', '.') }}
No hay entregas cargados aún.
Total: ${{ number_format($total_entregas, 2, ',', '.') }}
{{-- Excursiones Ventas Ingresos --}} @php $calc_exc_ventas = 0; @endphp

Excursiones Ventas Ingresos

@php $total_exc_ventas = 0; @endphp @forelse ($exc_ventas as $rend_exc_ventas) @php $total_exc_ventas += ($rend_exc_ventas->cant ?? 1) * ($rend_exc_ventas->costo ?? 0) * ($tipo_cambio); @endphp @empty @endforelse @if ($exc_ventas->count() > 0) @endif @php $calc_exc_ventas = ($total_exc_ventas ?? 0); @endphp
Detalle Cantidad Monto Tipo Cambio Total
@php $tipo_cambio = $rend_exc_ventas->tipo_cambio ?? 1; @endphp ${{ number_format(($rend_exc_ventas->costo * $rend_exc_ventas->cant * $tipo_cambio) ?? 0, 2, ',', '.') }}
No hay ventas de excursiones aún.
Total: ${{ number_format($total_exc_ventas, 2, ',', '.') }}
{{-- Excursiones Gastos Pagos --}} @php $calc_exc_gastos = 0; @endphp

Excursiones Gastos Pagos

@php $total_exc_gastos = 0; @endphp @forelse ($exc_gastos as $rend_exc_gastos) @php $total_exc_gastos += ($rend_exc_gastos->cant ?? 1) * ($rend_exc_gastos->costo ?? 0) * ($tipo_cambio); @endphp @empty @endforelse @if ($exc_gastos->count() > 0) @endif @php $calc_exc_gastos = ($total_exc_gastos ?? 0); @endphp
Detalle Cantidad Monto Tipo Cambio Total
@php $tipo_cambio = $rend_exc_gastos->tipo_cambio ?? 1; @endphp ${{ number_format(($rend_exc_gastos->costo * $rend_exc_gastos->cant * $tipo_cambio) ?? 0, 2, ',', '.') }}
No hay gastos de excursiones aún.
Total: ${{ number_format($total_exc_gastos, 2, ',', '.') }}
{{-- Saldo Excursiones --}}

Saldo Excursiones

@if ($coordinador) @endif
Excursiones Ventas ${{ number_format(($calc_exc_ventas) ?? 0, 2, ',', '.') }}
Excursiones Gastos ${{ number_format(($calc_exc_gastos) ?? 0, 2, ',', '.') }}
Pago Coordinador $
Saldo total/Ganancias Excursiones ${{ number_format(($calc_exc_ventas - $calc_exc_gastos - $calc_pago_coord) ?? 0, 2, ',', '.') }}
@include('footer')