@php $logoPath = public_path('logo.png'); $logoData = ''; if (file_exists($logoPath)) { $logoData = 'data:image/png;base64,' . base64_encode(file_get_contents($logoPath)); } @endphp
@if($logoData) @endif
#{{ $booking->code }} {{ $shape('رقم الطلب:') }}
{{ $establishment_name }} {{ $shape('إسم المنشأة:') }}
{{ $establishment_address }} {{ $shape('عنوان المنشأة:') }}
{{ $tax_register_number }} {{ $shape('الرقم الضريبي الخاص بياب-ستيم:') }}
{{ $shape('لا يوجد') }} {{ $shape('طريقة الدفع:') }}
{{ $booking->created_at->format('d M Y') }} {{ $shape('اليوم:') }}
{{ $booking->created_at->format('h:i A') }} {{ $shape('الوقت:') }}
@if($booking->user->tax_number) @endif
{{ $shape($booking->user->name) }} {{ $shape('إسم العميل:') }}
{{ $booking->user->phone }} {{ $shape('رقم هاتف العميل:') }}
{{ $booking->user->tax_number }} {{ $shape('الرقم الضريبي:') }}
@if($booking->package) @php $packagePrice = $booking->package->carCategories() ->where('car_category_id', $booking->car_category_id) ->first()?->pivot?->price ?? $booking->package->price; @endphp @endif @foreach($booking->additionalServices as $service) @endforeach
{{ $shape('المجموع') }} {{ $shape('التكرار') }} {{ $shape('السعر') }} {{ $shape('العنصر') }}
{{ number_format($packagePrice * $booking->number_of_iterations, 2) }} {{ $booking->number_of_iterations }} {{ number_format($packagePrice, 2) }} {{ $shape($booking->package->getTranslation('name', 'ar')) }}
{{ number_format($service->price * $booking->number_of_iterations, 2) }} {{ $booking->number_of_iterations }} {{ number_format($service->price, 2) }} {{ $shape($service->getTranslation('name', 'ar')) }}
{{ number_format($booking->total_price, 2) }}
{{ $shape('المجموع') }}
@if($booking->discount_amount > 0) @foreach($booking->coupons as $coupon)
{{ $coupon->type === 'percentage' ? $coupon->discount . '%' : number_format($coupon->discount, 2) }}
{{ $shape('الخصم') }} ({{ $shape($coupon->getTranslation('name', 'ar')) }})
@endforeach
-{{ number_format($booking->discount_amount, 2) }}
{{ $shape('إجمالي الخصم') }}
@endif
%{{ number_format($booking->tax_amount, 2) }}
{{ $shape('القيمة المضافة') }}
@if($currencyIcon) SAR @endif {{ number_format($booking->final_price, 2) }}
{{ $shape('صافي المبلغ') }}