@extends('backend.layouts.master') @section('title', __('static.booking.details')) @section('content') @use('app\Helpers\Helpers')
{{ __('static.booking.details') }} #{{ $childBooking->booking_number }}
{{ __('static.booking.created_at') }}{{ $childBooking->created_at->format('j F Y, g:i A') }}
@if ($childBooking->servicemen == null) @endif

{{__('static.provider_details')}}

  • {{__('static.name')}}:

    {{ $childBooking->provider?->name }}
  • {{__('static.email')}}:

    {{ $childBooking->provider?->email }}
  • @if (isset($childBooking->provider?->code) && isset($childBooking->provider->phone))
  • {{__('static.phone')}}:

    +{{ $childBooking->provider?->code . ' ' . $childBooking->provider->phone }}
  • @endif @if (isset($childBooking->provider->getPrimaryAddressAttribute()->country->name))
  • {{__('static.country')}}:

    {{ $childBooking->provider->getPrimaryAddressAttribute()->country->name }}
  • @endif @if (isset($childBooking->provider->getPrimaryAddressAttribute()->state->name))
  • {{__('static.state')}}:

    {{ $childBooking->provider->getPrimaryAddressAttribute()->state->name }}
  • @endif @if (isset($childBooking->provider->getPrimaryAddressAttribute()->city))
  • {{__('static.city')}}:

    {{ $childBooking->provider->getPrimaryAddressAttribute()->city }}
  • @endif

{{__('static.consumer_details')}}

  • {{__('static.booking.consumer_name')}}:

    {{ $childBooking->consumer->name }}
  • {{__('static.phone')}}:

    +{{ $childBooking->consumer->code.' '.$childBooking->consumer->phone }}
  • {{__('static.country')}}:

    {{ $childBooking->consumer->getPrimaryAddressAttribute()->country->name }}
  • {{__('static.state')}}:

    {{ $childBooking->consumer->getPrimaryAddressAttribute()->state->name }}
  • {{__('static.city')}}:

    {{ $childBooking->consumer->getPrimaryAddressAttribute()->city }}

{{ __('static.summary') }}

  • {{__('static.booking.payment_method')}}:

    {{ $childBooking->payment_method }}
  • {{__('static.booking.payment_status')}}:

    {{ $childBooking->payment_status }}
  • {{__('static.booking.coupon_discount')}}:

    {{Helpers::getSettings()['general']['default_currency']->symbol}} {{ $childBooking->coupon_total_discount }}
  • {{__('static.booking.service_discount')}}:

    {{Helpers::getSettings()['general']['default_currency']->symbol}} {{ $childBooking->discount ?? 0 }}
  • {{__('static.booking.service_tax')}}:

    {{Helpers::getSettings()['general']['default_currency']->symbol}} {{ $childBooking->tax ?? 0 }}
  • {{__('static.booking.service_amount')}}:

    {{Helpers::getSettings()['general']['default_currency']->symbol}} {{ $childBooking->service_price ?? 0 }}
{{ __('static.booking.details') }} #{{ $childBooking->booking_number }}
{{ __('static.booking.created_at') }}{{ $childBooking->created_at->format('j F Y, g:i A') }}
@if ($childBooking->servicemen == null)
@endif
    @forelse ($childBooking->booking_status_logs as $status)
  • {{ $status->status->hexa_code }}

    {{ $status->created_at->format('d-m-Y') }},{{ $status->created_at->format('g:i A') }}

    {{ $status->status->name }}

    {{ $status->description }}

  • @empty
  • {{__('static.no_status_log_found')}}

  • @endforelse
@if($childBooking->servicemen->count() > 0)
{{ __('static.servicemen_information') }}
@foreach ($childBooking->servicemen as $serviceman) @endforeach
{{__('static.name')}} {{__('static.email')}} {{__('static.phone')}}
{{ $serviceman->name }} {{ $serviceman->email }} +{{ $serviceman->code . ' ' . $serviceman->phone }}
@endif
@endsection @push('js') @endpush