@extends('layouts.admin') @section('content')
Full Name | {{ $booking->full_name }} |
---|---|
{{ $booking->email }} |
Word Count | {{ $booking->words_count ?? 'N/A' }} | |
---|---|---|
Total Pages | {{ $booking->total_pagestranslation ?? 'N/A' }} | |
Translation From | @php $fromLanguage = \App\Models\Language::find($booking->translation_from); $fromLanguageName = $fromLanguage ? $fromLanguage->name : 'N/A'; @endphp{{ $fromLanguageName }} | |
Translation To | @php $toLanguages = \App\Models\Language::whereIn('id', json_decode($booking->translation_to))->get(); @endphp@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. |
Order Additional Info | {{ $booking->addinfotextarea ?? 'N/A' }} |
---|
Translation Type | {{ $booking->translation_type ?? 'N/A' }} |
---|---|
Delivery Type | {{ $booking->delivery_type ?? 'N/A' }} |
Delivery Method | {{ $booking->delivery_method ?? 'N/A' }} |
Recipient | {{ $booking->recipient }} |
---|---|
City | {{ $booking->city }} |
Zipcode | {{ $booking->zipcode }} |
Address | {{ $booking->address }} |
Apartment | {{ $booking->appartment }} |
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 }} | |
{{ $booking->email }} | ||
Phone | {{ $booking->phone }} | |
Order Notes | {{ $booking->order_notes ?? 'N/A' }} | |
Document {{ $index + 1 }} | {{ basename($fileName) }} | Download |
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) }} |
Total | @php $totalWithVat = $booking->total_price + ($booking->vat_amount ?? 0); @endphpAED {{ number_format($totalWithVat, 2) }} |
Status | {{ $booking->status ?? 'N/A' }} |
Booking date | {{ $booking->created_at->format('d-m-Y') }} |