@php $title = __('Rental Contract'); @endphp {{ $title }}

{{ $title }}

@if (Str::slug($carRental->carRentalType->name ?? 'LCD') == Str::slug('LCD')) @endif @if (Str::slug($carRental->carRentalType->name ?? 'LCD') == Str::slug('LLD')) @endif
{{ __('Client Identification') }} {{ __('Vehicle Identification') }}
@if ($client->clientType->has_company_name ?? null)
{{ __('Company name') }}: {{ $client->company_name ?? null }}
@else
{{ __('Last name') }}: {{ $client->last_name ?? null }}
{{ __('First name') }}: {{ $client->first_name ?? null }}
@endif @if (!$client->clientType->has_company_name)
{{ __('Driver (for legal entities)') }}: {{ $client->full_name }}
@endif @if (!$client->clientType->has_company_name)
{{ __('Nationality') }}: @if ($carRental ?? null) {{ $client && $client->has_passport ? 'Etranger' : 'Marocain' }} @endif
@endif @if ($client->passport || $client->cin)
{{ __('ID/Passport') }}: {{ $client->has_passport ? $client->passport : $client->cin }}
@endif @if ($client->license_number)
{{ __('Driving License') }}: {{ $client->license_number ?? null }}
@endif @if ($client->license_start_date)
{{ __('Issued on') }}: {{ \Carbon\Carbon::parse($client->license_start_date)->format('d/m/Y') }}
@endif
{{ __('Address') }}: {{ Str::limit($client->address ?? null, 35, '...') }}
{{ __('Phone') }}: {{ $client->phone ?? null }}
{{ __('Email') }}: {{ $client->email ?? null }}
{{ __('Brand') }}: {{ $carRental->carBrand->name ?? null }}
{{ __('Model') }}: {{ $carRental->carModel->name ?? null }}
{{ __('Registration') }}: {{ $carRental->car->registration_number ?? null }}
{{ __('Date of Manufacture') }}:
{{ __('Fuel') }}: {{ $carRental->carVersion->carFuelType->name ?? null }}
{{ __('Departure Date') }}: @isset($carRental) {{ \Carbon\Carbon::parse($carRental->departure_date)->format('d/m/Y') }} @endisset
{{ __('Expected Return Date') }}: @isset($carRental) {{ \Carbon\Carbon::parse($carRental->arrival_date)->format('d/m/Y') }} @endisset
{{ __('Actual Return Date') }}:
{{ __('Actual Rental Duration') }}:
{{ __('Departure Location') }}: {{ Str::limit($carRental->departure_location ?? null, 35, '...') }}
{{ __('Return Location') }}: {{ Str::limit($carRental->arrival_location ?? null, 35, '...') }}
@if ($otherDriver)
{{ __('Second Driver') }}: {{ $otherDriver->full_name ?? null }}
{{ __('ID/Passport') }}: {{ $otherDriver->has_passport ? $otherDriver->passport : $otherDriver->cin }}
{{ __('Driving License') }}: {{ $otherDriver->license_number ?? null }}
{{ __('Issued on') }}: {{ \Carbon\Carbon::parse($otherDriver->license_start_date)->format('d/m/Y') }}
@elseif ($driver)
@if ($carRental->isInsurance() || $carRental->isGuarantee()) {{ __('Driver') }}: @else {{ __('Second Driver') }}: @endif {{ $driver->full_name ?? null }}
{{ __('ID/Passport') }}: {{ $driver->has_passport ? $driver->passport : $driver->cin }}
{{ __('Driving License') }}: {{ $driver->license_number ?? null }}
{{ __('Issued on') }}: {{ \Carbon\Carbon::parse($driver->license_start_date)->format('d/m/Y') }}
@endif
{{ __('Departure Km') }}: @if ($carRental->departure_km ?? 0) {{ $carRental->departure_km }} @endif
{{ __('Return Km') }}: @if ($carRental->arrival_km ?? 0) {{ $carRental->arrival_km }} @endif
@foreach ($FUEL_STATUS as $key => $item) @endforeach
{{ __('Departure fuel') }} {{ $item }}
@foreach ($FUEL_STATUS as $key => $item) @endforeach
{{ __('Arrival fuel') }} {{ $item }}
{{ __('Vehicle Condition at Departure') }}: {{ __('Vehicle Condition at Return') }}:
@foreach ($carRentalExtras as $carRentalExtra) @endforeach
{{ __('Additional Purchases') }}:
{{ $carRentalExtra->name }} @if ($carRental ?? null) {{ in_array($carRentalExtra->id, $carRental->carRentalExtra->pluck('id')->toArray()) ? 'X' : '' }} @endif
@php $currency = \App\Models\Setting::getValue('currency', 'MAD'); $tax = $carRental->tax_rate ?? 20; $tax = floatval($carRental->tax_rate ?? 0); if ($tax == 0) { $tax = floatval(\App\Models\Setting::getValue('company_tax_number', 20)); } $items = [ [ 'key' => __('Daily Rent Incl Tax'), 'value' => $carRental->price ?? '', ], [ 'key' => __('Duration Rent Excl Tax'), 'value' => $carRental->rental_price ?? '', ], [ 'key' => __('Additional Sales Excl Tax'), 'value' => $carRental->extras_price ?? '', ], [ 'key' => __('Additional Sales Incl Tax'), 'value' => get_amount_inc_tax($carRental->extras_price ?? 0, $tax), ], [ 'key' => __('Total Excl Tax'), 'value' => $carRental->total_price ?? '', ], [ 'key' => __('Total Incl Tax'), 'value' => get_amount_inc_tax($carRental->total_price ?? 0, $tax), ], ]; @endphp @foreach ($items as $item) @endforeach
{{ __('Pricing') }} (MAD):
{{ $item['key'] }} @if ($showPrice) {{ $item['value'] }} {{ $currency }} @endif
{{ __('Client Signature') }}
{{ __('Return') }}
{{ __('Insurance Deductible') }} {{ __('Amount') }} {{ __('Pricing') }}
{{ __('No Buyback') }}
{{ __('Partial Buyback (SLDW)') }}
{{ __('Full Buyback (SLDW+)') }}
{{ __('Signature and Stamp') }}
{{ __('Return') }}
{{ __('Signature and Stamp') }} RENTOP
{{ __('Departure') }}
{{ __('Client Signature') }}
{{ __('Departure') }}
{{ __('Signature and Stamp') }} RENTOP
{{ __('Return') }}
{{ __('Client Signature') }}
{{ __('Return') }}
@include('pdf.footer')