@use('app\Helpers\Helpers')
@extends('frontend.layout.master')
@php
$isCouponEnabled = Helpers::couponIsEnable();
@endphp
@section('title', __('frontend::static.bookings.my_cart'))
@section('breadcrumb')
@endsection
@section('content')
{{ $provider?->name }} {{__('frontend::static.bookings.date_time')}} {{__('frontend::static.cart.servicemen')}} {{__('frontend::static.cart.servicemen_not_found')}}
{{__('frontend::static.cart.app_choose_note')}}
{{ $servicePackage?->user?->name }}
{{ $servicePackage?->description }}
{{__('frontend::static.cart.nothing_added_note')}}
({{__('frontend::static.cart.coupon_already_applied_in_subtotal')}}) {{ $service?->title }}
{{ $servicePackage?->title }}
{{__('frontend::static.cart.subtotal')}} {{__('frontend::static.cart.tax')}} {{__('frontend::static.cart.platform_fees')}} {{__('frontend::static.cart.coupon_discount')}} {{__('frontend::static.cart.total_amount')}} {{__('frontend::static.cart.nothing_added_note')}} {{__('frontend::static.cart.disclaimer_note')}}{{__('frontend::static.cart.added_items_details')}}
@if(count($cartItems ?? []))
{{ count($cartItems ?? []) }} {{__('frontend::static.cart.items_in_cart')}}
@endif
{{ $provider?->review_ratings ?? 'Unrated' }}
{{ $service?->title }}
@if($service?->discount)
({{ $service?->discount }}%
{{__('frontend::static.cart.off')}})
@endif
@if($serviceBooking['select_serviceman'] = 'as_per_my_choice')
@if(!empty($serviceBooking['serviceman_id']))
@php
$servicemenIds = explode(',', $serviceBooking['serviceman_id']);
$servicemen = Helpers::getUsersByIds($servicemenIds ?? []);
@endphp
{{ $serviceman?->name }}
{{ $serviceman?->review_ratings ?? 'Unrated' }}
{{ $servicePackage?->user?->review_ratings ?? 'Unrated' }}
{{ $servicePackage?->title }}
@if($servicePackage?->discount)
({{ $servicePackage?->discount }}%
{{__('frontend::static.cart.off')}})
@endif
@endif
{{__('frontend::static.cart.description')}}
{{__('frontend::static.cart.nothing_added')}}
{{__('frontend::static.cart.payment_summary')}}
{{__('frontend::static.cart.applied_discount')}}{{__('frontend::static.cart.view_all')}}
@if($checkout['total']['coupon_total_discount'])
{{__('frontend::static.cart.hurray_you_saved')}}
{{ Helpers::getDefaultCurrencySymbol() }}{{ Helpers::covertDefaultExchangeRate($checkout['total']['coupon_total_discount']) }} {{__('frontend::static.cart.with_this_coupon')}}
#{{ session('coupon') }}.
@isset($checkout['services'])
@foreach($checkout['services'] as $serviceItem)
@php
$service = Helpers::getServiceById($serviceItem['service_id']);
@endphp
@else
{{__('frontend::static.cart.nothing_added')}}