@section('title', $service->name)
@section('styles')
{{-- seo links --}}
{{-- twitter --}}
{{-- facebook --}}
@endsection
{{-- breadcrumb --}}
@include('livewire.extensions.glover-website.components.nav-breadcrumb', [
'links' => [
[
'title' => __('Home'),
'url' => route('glover-website.index'),
],
[
'title' => $service->vendor->vendor_type->name,
'url' => route('glover-website.vendor.type', [
'id' => $service->vendor->vendor_type->id,
'slug' =>
$service->vendor->vendor_type->slug ?? \Str::slug($service->vendor->vendor_type->name),
]),
],
[
'title' => __('Service Booking'),
'url' => url()->current(),
],
],
])
{{-- details --}}
{{ __('Booking Summray/Checkout') }}
{{ __('Service Details') }}
{{ $service->name }}
@if (!empty($selectedGroupOptionsFlatten))
{{ $selectedGroupOptionsFlatten ?? '' }}
@endif
{{ $service->vendor->name }}
{{-- price --}}
@if ($service->discount_price > 0)
{{ currencyFormat($service->price) }}
{{ currencyFormat($service->discount_price) }}
@else
{{ currencyFormat($service->price) }}
@endif
@if ($service->duration != null && $service->duration != 'fixed')
/ {{ $service->duration }}
@endif
{{-- add qty selector if the service->duration is not null and not fixed --}}
@if ($service->duration != 'fixed')
{{-- - sign --}}
{{-- selected duration --}}
{{ $duration }}
{{-- + sign --}}
{{-- subtotal
{{ __('Subtotal') }}
{{ currencyFormat($subtotal ?? 0.0) }}
--}}
@endif
{{-- if vendor allow order scheduling --}}
@if ($service->vendor->allow_schedule_order)
{{-- toggle option to enable the schedule order selection --}}
{{ __('Schedule Order') }}
{{ __('Do you want to schedule this order?') }}
@if ($schedule_order)
{{-- booking date --}}
{{ __('Booking Date') }}
{{ __('When do you want to book this service?') }}
@endif
@endif
{{-- booking address --}}
{{-- payment methods --}}
{{ __('Payment Methods') }}
{{ __('How do you want to pay for this order?') }}
@foreach ($paymentMethods ?? [] as $paymentMethod)
@php
$selectedStyle = '';
if ($paymentMethod->id == $payment_method_id) {
$selectedStyle = 'border-2 border-primary-500';
}
@endphp
{{ $paymentMethod->name }}
@endforeach
{{ __('Order Summary') }}
{{-- subtotal --}}
{{ __('Subtotal') }}
{{ currencyFormat($subtotal ?? 0.0) }}
{{-- selectedOptionsTotalPrice --}}
@if ($selectedOptionsTotalPrice > 0)
{{ __('Options') }}
{{ currencyFormat($selectedOptionsTotalPrice) }}
@endif
{{-- discount --}}
@if ($discount > 0)
{{ __('Discount') }}
{{ currencyFormat($discount) }}
@endif
{{-- tax --}}
{{ __('Tax') }}({{ $taxRate ?? $service->vendor->tax }}%)
{{ currencyFormat($tax) }}
{{-- fees if any --}}
@if ($fees)
@foreach ($fees as $fee)
{{ $fee['name'] }}
{{ currencyFormat($fee['amount']) }}
@endforeach
@endif
{{-- total --}}
{{ __('Total') }}
{{ currencyFormat($total) }}
{{-- place booking --}}
{{-- check icon --}}
{{ __('Place Booking') }}
{{-- loading --}}
@include('livewire.extensions.glover-website.components.loading')