🏢
Cliente
{{ $cotizacion->cliente_nombre ?? 'Joseph A Barrios M' }}
📞
Teléfono
{{ $cotizacion->cliente_telefono ?? '8681984809' }}
💳
Método de Pago
{{ strtoupper($cotizacion->metodo_pago ?? 'EFECTIVO') }}
@if(isset($cotizacion->folio_pago))
🧾
Folio de Pago
{{ $cotizacion->folio_pago }}
@endif
@if(isset($cotizacion->vehiculo))
Vehículo
{{ $cotizacion->vehiculo->marca ?? '' }} {{ $cotizacion->vehiculo->modelo ?? '' }}
Placa
{{ $cotizacion->placa ?? '12' }}
Propietario
{{ $cotizacion->vehiculo->propietario ?? '' }}
@if(isset($cotizacion->vehiculo->serial))
Serial
{{ $cotizacion->vehiculo->serial }}
@endif
@else
Placa
{{ $cotizacion->placa ?? '12' }}
@endif
| Concepto |
Precio Unit. |
Cantidad |
Total |
@forelse($cotizacion->items ?? [
(object)['id' => 4, 'name' => 'MANTENIMIENTO GENERAL', 'price' => 500, 'quantity' => 1],
(object)['id' => 5, 'name' => 'MANTENIMIENTO VIAJE', 'price' => 100, 'quantity' => 1],
(object)['id' => 6, 'name' => 'CAMBIO DE BALATAS', 'price' => 100, 'quantity' => 1],
(object)['id' => 3, 'name' => 'BALATA', 'price' => 250, 'quantity' => 1]
] as $item)
|
{{ $item->name }}
|
${{ number_format($item->price, 2) }}
|
{{ $item->quantity }}
|
${{ number_format($item->price * $item->quantity, 2) }}
|
@empty
|
No hay servicios registrados
|
@endforelse
@php
$items = $cotizacion->items ?? [
(object)['price' => 500, 'quantity' => 1],
(object)['price' => 100, 'quantity' => 1],
(object)['price' => 100, 'quantity' => 1],
(object)['price' => 250, 'quantity' => 1]
];
$subtotal = collect($items)->sum(function($item) {
return $item->price * $item->quantity;
});
$descuento = $cotizacion->descuento ?? 0;
$impuesto_monto = ($cotizacion->impuestos ?? false) ? ($cotizacion->impuesto_monto ?? 0) : 0;
$total = $cotizacion->monto_final ?? ($subtotal - $descuento + $impuesto_monto);
@endphp
Subtotal:
${{ number_format($subtotal, 2) }}
@if($descuento > 0)
Descuento:
-${{ number_format($descuento, 2) }}
@endif
@if(($cotizacion->impuestos ?? false) && $impuesto_monto > 0)
Impuestos:
${{ number_format($impuesto_monto, 2) }}
@endif
Total:
${{ number_format($total, 2) }}
MXN
@if(isset($cotizacion->ComentariosEnCotizacion) && count($cotizacion->ComentariosEnCotizacion) > 0)
@foreach($cotizacion->ComentariosEnCotizacion as $comentario)
@endforeach
@endif
Comentarios