@extends('vendors.layout') @section('content')
@php $position = $details->currency_symbol_position; $currency = $details->currency_symbol; @endphp
{{ __('Booking No.') . ' ' . '#' . $details->booking_number }}
{{ __('Booking Date') . ' :' }}
{{ date_format($details->created_at, 'M d, Y') }}
@if (is_null($details->total))
{{ __('Price') . ' :' }}
{{ __('Negotiable') }}
@else
{{ __('Price') . ' :' }}
{{ $position == 'left' ? $currency . ' ' : '' }}{{ number_format($details->total, 2) }}{{ $position == 'right' ? ' ' . $currency : '' }}
@endif @if (!is_null($details->discount))
{{ __('Discount') }} () :
{{ $position == 'left' ? $currency . ' ' : '' }}{{ number_format($details->discount, 2) }}{{ $position == 'right' ? ' ' . $currency : '' }}
@endif @if (!is_null($details->total) && !is_null($details->discount))
{{ __('Subtotal') . ' :' }}
@php $total = floatval($details->total); $discount = floatval($details->discount); $subtotal = $total - $discount; @endphp
{{ $position == 'left' ? $currency . ' ' : '' }}{{ number_format($subtotal, 2) }}{{ $position == 'right' ? ' ' . $currency : '' }}
@endif @if (!is_null($details->shipping_cost))
{{ __('Shipping Cost') }} () :
{{ $position == 'left' ? $currency . ' ' : '' }}{{ number_format($details->shipping_cost, 2) }}{{ $position == 'right' ? ' ' . $currency : '' }}
@endif @if (!is_null($details->tax))
{{ __('Tax') }} {{ '(' . $tax->equipment_tax_amount . '%)' }} () :
{{ $position == 'left' ? $currency . ' ' : '' }}{{ number_format($details->tax, 2) }}{{ $position == 'right' ? ' ' . $currency : '' }} ({{ __('Received by Admin') }})
@endif @if ($details->security_deposit_amount > 1)
{{ __('Security Deposit Amount') }} () :
{{ $position == 'left' ? $currency . ' ' : '' }}{{ number_format($details->security_deposit_amount, 2) }}{{ $position == 'right' ? ' ' . $currency : '' }} ({{ __('Received by Admin but Refundable') }})
@endif @if (!is_null($details->grand_total))
{{ __('Customer Paid') . ' :' }}
{{ $position == 'left' ? $currency . ' ' : '' }}{{ number_format($details->grand_total, 2) }}{{ $position == 'right' ? ' ' . $currency : '' }}
@endif @if (!is_null($details->received_amount))
{{ __('Commision') }} ({{ $details->commission_percentage }}%) :
{{ $position == 'left' ? $currency . ' ' : '' }}{{ number_format($details->comission, 2) }}{{ $position == 'right' ? ' ' . $currency : '' }} ({{ __('Received by Admin') }})
@endif @if (!is_null($details->received_amount))
{{ __('Received Amount') . ' :' }}
{{ $position == 'left' ? $currency . ' ' : '' }}{{ number_format($details->received_amount, 2) }}{{ $position == 'right' ? ' ' . $currency : '' }}
@endif @if (!is_null($details->payment_method))
{{ __('Paid via') . ' :' }}
{{ $details->payment_method }}
@endif
{{ __('Payment Status') . ' :' }}
@if ($details->payment_status == 'completed') {{ __('Completed') }} @elseif ($details->payment_status == 'pending') {{ __('Pending') }} @else {{ __('Rejected') }} @endif
{{ __('Shipping Status') . ' :' }}
@csrf
{{ __('Return Status') . ' :' }}
@if ($details->return_status == 1) {{ __('Yes') }} @else @if ($details->security_deposit_amount > 0)
@csrf
@else
@csrf
@endif @endif
{{ __('Booking Information') }}
{{ __('Equipment') . ' :' }}
@php $equipment = $details->equipmentInfo()->first(); $equipmentTitle = $equipment ->content() ->where('language_id', $language->id) ->select('title', 'slug') ->first(); @endphp
@php $startDate = Carbon\Carbon::parse($details->start_date)->format('M d, Y'); $endDate = Carbon\Carbon::parse($details->end_date)->format('M d, Y'); @endphp
{{ __('Start Date') . ' :' }}
{{ $startDate }}
{{ __('End Date') . ' :' }}
{{ $endDate }}
@if (!is_null($details->shipping_method))
{{ __('Shipping Type') . ' :' }}
{{ ucwords($details->shipping_method) }}
@endif
{{ __('Shipping Location') . ' :' }}
{{ $details->location }}
{{ __('Billing Details') }}
{{ __('Name') . ' :' }}
{{ $details->name }}
{{ __('Username') . ' :' }}
@php $user = $details->user()->first(); @endphp @if ($user)
{{ $user->username }}
@else
{{ __('Guest') }}
@endif
{{ __('Email') . ' :' }}
{{ $details->email }}
{{ __('Contact Number') . ' :' }}
{{ $details->contact_number }}
@includeIf('vendors.booking.return_modal') @endsection