Rendiciones del Viaje
Coordinador: @if ($coordinador) {{ $coordinador->nombre ?? '' }} @else @endif
{{-- Ingresos --}}
Ingresos
| 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
| 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
| 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
| 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
| 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
| 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, ',', '.') }} |