@extends('layouts.admin') @section('content')

Translation Bookings Details

Booking Details {{ $booking->booking_id }}

Contact Information

Full Name {{ $booking->full_name }}
Email {{ $booking->email }}

Documents

@php $fromLanguage = \App\Models\Language::find($booking->translation_from); $fromLanguageName = $fromLanguage ? $fromLanguage->name : 'N/A'; @endphp @php $toLanguages = \App\Models\Language::whereIn('id', json_decode($booking->translation_to))->get(); @endphp @endforeach @else @endif
Word Count {{ $booking->words_count ?? 'N/A' }}
Total Pages {{ $booking->total_pagestranslation ?? 'N/A' }}
Translation From{{ $fromLanguageName }}
Translation To @if ($toLanguages->isNotEmpty()) @foreach ($toLanguages as $language) {{ $language->name }}@if (!$loop->last), @endif @endforeach @else N/A @endif
Files @php $documents = $booking->file_names ? explode(',', $booking->file_names) : []; @endphp @if (!empty($documents)) @foreach ($documents as $index => $document) @php $fileName = trim($document); $fileUrl = asset('storage/booking_services/' . $fileName); @endphp
Document {{ $index + 1 }} {{ basename($fileName) }} Download
No files available for this booking.

Additional Information

Order Additional Info {{ $booking->addinfotextarea ?? 'N/A' }}

Options

Translation Type {{ $booking->translation_type ?? 'N/A' }}
Delivery Type {{ $booking->delivery_type ?? 'N/A' }}
Delivery Method {{ $booking->delivery_method ?? 'N/A' }}

Shipping Information

Recipient {{ $booking->recipient }}
City {{ $booking->city }}
Zipcode {{ $booking->zipcode }}
Address {{ $booking->address }}
Apartment {{ $booking->appartment }}

Billing Information

@if (!empty($booking->confirmfile_names)) @php $fileNames = explode(',', $booking->confirmfile_names); // Assuming comma-separated file names @endphp @foreach ($fileNames as $index => $fileName) @php $fileUrl = asset('storage/booking_services/' . $fileName); @endphp @endforeach @endif
Customer Name {{ $booking->first_name }} {{ $booking->last_name }}
Company {{ $booking->company_name }}
Country {{ $booking->country }}
Street Address {{ $booking->street_address }}
Town/city {{ $booking->city }}
State {{ $booking->state }}
Email {{ $booking->email }}
Phone {{ $booking->phone }}
Order Notes {{ $booking->order_notes ?? 'N/A' }}
Document {{ $index + 1 }} {{ basename($fileName) }} Download

Order Summary

@if ($booking->translation_type_price > 0) @endif @if ($booking->delivery_type_price > 0) @endif @if ($booking->delivery_method_price > 0) @endif @if ($booking->vat_amount > 0) @endif @php $totalWithVat = $booking->total_price + ($booking->vat_amount ?? 0); @endphp
Translation Lang Price @if (!empty($booking->price_details)) @php $subtotal = 0; // Initialize subtotal @endphp @foreach (json_decode($booking->price_details) as $translation) {{ $translation->from }} to {{ $translation->to }} : AED {{ number_format($translation->price, 2) }}
@php // Add to subtotal if this translation should contribute $subtotal += $translation->price; // Apply conditions here if needed @endphp @endforeach @else No translations available. @endif
Sub Total {{ $booking->total_price ? 'AED ' . number_format($subtotal, 2) : 'N/A' }}
Translation Price AED {{ number_format($booking->translation_type_price, 2) }}
Delivery Type Price AED {{ number_format($booking->delivery_type_price, 2) }}
Delivery Method Price AED {{ number_format($booking->delivery_method_price, 2) }}
Vat AED {{ number_format($booking->vat_amount, 2) }}
TotalAED {{ number_format($totalWithVat, 2) }}
Status {{ $booking->status ?? 'N/A' }}
Booking date {{ $booking->created_at->format('d-m-Y') }}
@endsection @section('script') @endsection