@extends('layouts.app') @push('css_lib') @endpush @section('content')

{{trans('lang.booking_plural')}} |{{trans('lang.booking_desc')}}

  • {{__('lang.booking_status')}} @if($booking->cancel) {{__('lang.booking_cancel')}} @endif
  • @foreach($bookingStatuses as $bookingStatus)
    {{$bookingStatus->order}} {{$bookingStatus->status}}
    @if (!$loop->last)
    @endif @endforeach
  • {{__('lang.booking_id')}} #{{$booking->id}}
  • {!! getMediaColumn($booking->e_service,'image','rounded shadow-sm border') !!}
    {{__('lang.booking_e_service')}} {{$booking->e_service->name}}{{__('lang.by')}} {{$booking->e_provider->name}}
    @if($booking->e_service->price_unit == 'fixed' && !empty($booking->e_service->quantity_unit)) {{__('lang.e_service_quantity')}} {{ $booking->quantity }} {{ $booking->e_service->quantity_unit }} @else {{__('lang.e_service_duration')}} {{$booking->getDurationInHours()}} {{__('lang.booking_hours')}} @endif
    @if($booking->e_service->hasDiscount()) {!! getPrice($booking->e_service->price) !!} @endif @if($booking->e_service->price_unit == 'fixed' && !empty($booking->e_service->quantity_unit)) {!! getPrice($booking->e_service->getPrice()) !!} / {{ $booking->e_service->quantity_unit }} @else {!! getPrice($booking->e_service->getPrice()) !!} / {{__('lang.e_service_price_unit_'.$booking->e_service->price_unit)}} @endif
  • {{__('lang.option_plural')}}
  • @foreach($booking->options as $option)
  • {!! getMediaColumn($option,'image','rounded shadow-sm border') !!} {{$option->name}} {{getStripedHtmlColumn($option,'description')}}
    {!! getPriceColumn($option) !!}
  • @endforeach
  • {{__('lang.payment')}}
  • {{__('lang.payment_status')}} {{empty(!$booking->payment) ? $booking->payment->paymentStatus->status : '-'}}
  • {{__('lang.payment_method')}} {{empty(!$booking->payment) ? $booking->payment->paymentMethod->name : '-'}}
  • {{__('lang.booking_hint')}} {{$booking->hint}}
  • {{__('lang.booking_taxes_fees')}}
  • @foreach($booking->taxes as $tax)
  • {{$tax->name}}
    @if($tax->type == 'percent') {{$tax->value .'%'}} @else {!! getPriceColumn($tax,'value') !!} @endif
  • @endforeach
  • {{__('lang.booking_coupon')}}
  • {{$booking->coupon->code}} {{getStripedHtmlColumn($booking->coupon,'description')}}
    @if($booking->coupon->discount_type == 'percent') {{(-$booking->coupon->discount) .'%'}} @else {!! getPrice(-$booking->coupon->discount) !!} @endif
  • {{__('lang.booking_subtotal')}}
    {!! getPrice($booking->getSubtotal()) !!}
  • {{__('lang.booking_total')}}
    {!! getPrice($booking->getTotal()) !!}
{{__('lang.booking_user_id')}}
  • {!! getMediaColumn($booking->user,'avatar','img-circle shadow-sm border') !!}
    {{$booking->user->name}} {{$booking->user->email}} {{$booking->user->phone_number}}
    {{__('lang.user_profile')}}
{{__('lang.booking_time')}}
  • {{__('lang.booking_booking_at')}} {{$booking->booking_at}}
  • {{__('lang.booking_start_at')}} {{$booking->start_at ?: '-'}}
  • {{__('lang.booking_ends_at')}} {{$booking->ends_at ?: '-'}}
{{__('lang.booking_address')}}
@endsection @push('scripts_lib') {{-- --}} @endpush