@extends('admin.layout') @section('content')
{{ __('Back') }}
@php $symbol = $details->currency_symbol; $symbol_positon = $details->currency_symbol_position; @endphp
{{ __('Booking No.') . ' ' . '#' . $details->order_number }}
{{ __('Service Title') . ' :' }}
@if ($details->serviceContent->isNotEmpty()) @foreach ($details->serviceContent as $content) {{ truncateString($content->name, 50) }} @endforeach @else {{ '-' }} @endif
{{ __('Booking Date') . ' :' }}
{{ date_format($details->created_at, 'M d, Y') }}
{{ __('Appointment Date') . ' :' }}
{{ \Carbon\Carbon::parse($details->booking_date)->format('M d, Y') }}
{{ __('Appointment Time') . ' :' }}
{{ $details->start_date }} - {{ $details->end_date }}
@if ($details->max_person > 1) {{ __('Persons') . ' :' }} @else {{ __('Person') . ' :' }} @endif
{{ $details->max_person }} @if ($details->max_person > 1) {{ __('Persons') }} @else {{ __('Person') }} @endif
@if ($details->zoom_info != null)
{{ __('Zoom Host Url') . ' :' }}
@if ($details->zoom_info) @php $zoom_link = json_decode($details->zoom_info, true); @endphp {{ strlen($zoom_link['start_url']) > 50 ? mb_substr($zoom_link['start_url'], 0, 50, 'utf-8') . '...' : $zoom_link['start_url'] }} @else {{ '-' }} @endif
{{ __('Zoom Join Url') . ' :' }}
@if ($details->zoom_info) @php $zoom_link = json_decode($details->zoom_info, true); @endphp {{ strlen($zoom_link['join_url']) > 50 ? mb_substr($zoom_link['join_url'], 0, 50, 'utf-8') . '...' : $zoom_link['join_url'] }} @else {{ '-' }} @endif
{{ __('Meeting Join Password') . ' :' }}
@if ($details->zoom_info) {{ $zoom_link['password'] }} @else {{ '-' }} @endif
@endif
{{ __('Price') . ' :' }}
{{ $symbol_positon == 'left' ? $symbol : '' }} {{ number_format($details->customer_paid, 2, '.', ',') }} {{ $symbol_positon == 'right' ? $symbol : '' }}
{{ __('Paid via') . ' :' }}
{{ $details->payment_method }}
{{ __('Payment Status') . ' :' }}
@if ($details->payment_status == 'completed') {{ __('Completed') }} @elseif ($details->payment_status == 'pending') {{ __('Pending') }} @else {{ __('Rejected') }} @endif
{{ __('Appointment Status') . ' :' }}
@if ($details->order_status == 'accepted') {{ __('Accepted') }} @elseif ($details->order_status == 'pending') {{ __('Pending') }} @else {{ __('Rejected') }} @endif
@if ($details->order_status == 'rejected')
{{ __('Refund Status') . ' :' }}
@if ($details->order_status == 'rejected') @if ($details->refund == 'pending') {{ __('Pending') }} @else {{ __('Refunded') }} @endif @endif
@endif
{{ __('Billing Details') }}
{{ __('Name') . ' :' }}
{{ $details->customer_name }}
{{ __('Email') . ' :' }}
{{ $details->customer_email }}
{{ __('Phone') . ' :' }}
{{ $details->customer_phone }}
{{ __('Address') . ' :' }}
{{ $details->customer_address }}
{{ __('Country') . ' :' }}
{{ $details->customer_country }}
{{ __('Vendor Details') }}
{{ __('Name') . ' :' }}
@if ($details->vendor_id != 0) {{ !empty($vendor_details->name) ? $vendor_details->name : $vendor_details->username }} @else {{ !empty($vendor_details->first_name) ? $vendor_details->first_name : $vendor_details->username }} @endif
{{ __('Email') . ' :' }}
{{ $vendor_details->email }}
@if (!empty($vendor_details->phone))
{{ __('Phone') . ' :' }}
{{ $vendor_details->phone }}
@endif @if (!empty($vendor_details->address))
{{ __('Address') . ' :' }}
{{ $vendor_details->address }}
@endif @if (!empty($vendor_details->city))
{{ __('City') . ' :' }}
{{ $vendor_details->city }}
@endif @if (!empty($vendor_details->state))
{{ __('State') . ' :' }}
{{ $vendor_details->state }}
@endif @if (!empty($vendor_details->country))
{{ __('Country') . ' :' }}
{{ $vendor_details->country }}
@endif
@if ($details->staff_id != null) @if ($staff->role == null)
{{ __('Staff Details') }}
{{ __('Name') . ' :' }}
{{ $staff->name ?? $staff->username }}
{{ __('Email') . ' :' }}
{{ $staff->email }}
{{ __('Phone') . ' :' }}
{{ $staff->phone }}
@if (!empty($staff->address))
{{ __('Address') . ' :' }}
{{ $staff->address }}
@endif @if (!empty($staff->information))
{{ __('Information') . ' :' }}
@endif
@endif @endif
@endsection