@if(isset($logoPath) && $logoPath && file_exists($logoPath)) @else @php $logoPath1 = public_path('storage/logoAkiyan.png'); $logoPath2 = storage_path('app/public/logoAkiyan.png'); $logoPath = file_exists($logoPath1) ? $logoPath1 : (file_exists($logoPath2) ? $logoPath2 : null); @endphp @if($logoPath && file_exists($logoPath)) @else
AKIYAN
@endif @endif

AKIYAN

Constructora y Arriendo de Maquinaria

SOLICITUD DE COTIZACIÓN #{{ str_pad($quotation->id, 6, '0', STR_PAD_LEFT) }}

Información del Cliente

Nombre: {{ $quotation->visitor_name }}
Email: {{ $quotation->visitor_email }}
Teléfono: {{ $quotation->visitor_phone }}
Estado: @if($quotation->status == 'pending') Pendiente @elseif($quotation->status == 'approved') Aprobada @elseif($quotation->status == 'rejected') Rechazada @else Completada @endif

Período de Arriendo

Fecha Inicio: {{ \Carbon\Carbon::parse($quotation->start_date)->format('d/m/Y') }}
Fecha Fin: {{ \Carbon\Carbon::parse($quotation->end_date)->format('d/m/Y') }}
Duración: {{ \Carbon\Carbon::parse($quotation->start_date)->diffInDays(\Carbon\Carbon::parse($quotation->end_date)) }} días

Máquinas Solicitadas

@foreach($quotation->machines as $index => $machine) @endforeach
# Máquina Categoría Cantidad
{{ $index + 1 }} {{ $machine->name }} {{ $machine->category }} {{ $machine->pivot->quantity ?? 1 }}
@if($quotation->notes)

Notas Adicionales

{{ $quotation->notes }}

@endif