@extends('landing-page.layouts.default') @section('content')

{{ $bookingData['booking_detail']['status_label'] }}

{{__('landingpage.check_status')}}
@if($bookingData['bookingpackage'] == null)
#{{ $bookingData['booking_detail']['id'] }} {{ $bookingData['booking_detail']['service_name'] }}
@else
#{{ $bookingData['booking_detail']['id'] }} {{ $bookingData['bookingpackage']['name'] }}
@endif

{{ $bookingData['booking_detail']['booking_date'] }}

{{__('landingpage.service_total_time')}}: @if(!empty( $bookingData['service']['duration'])) @php $durationParts = explode(':', $bookingData['service']['duration']); $hours = intval($durationParts[0]); $minutes = intval($durationParts[1]); @endphp
  • @if($hours > 0) {{ $hours }} hrs @if($minutes > 0) {{ $minutes }} min @endif @else {{ $minutes }} min @endif
  • @endif {{-- {{ $bookingData['service']['duration'] }} --}}
    @if($bookingData['service']['is_enable_advance_payment']==0 && $bookingData['booking_detail']['status'] === 'pending' && ($bookingData['booking_detail']['payment_status'] !== 'failed' || $bookingData['booking_detail']['payment_status'] === 'pending' || $bookingData['booking_detail']['payment_status'] === 'advanced_paid') || $bookingData['booking_detail']['status'] === 'accept')
    @endif @if($bookingData['booking_detail']['status'] === 'completed' && ($bookingData['booking_detail']['payment_status'] === null || $bookingData['booking_detail']['payment_status'] === 'failed' || $bookingData['booking_detail']['payment_status'] === 'advanced_paid') && $bookingData['booking_detail']['total_amount'] != 0) @endif @if($bookingData['booking_detail']['status'] === 'on_going')
    @endif @if($bookingData['booking_detail']['status'] === 'in_progress')
    @if($bookingData['service']['visit_type'] !== 'ONLINE') @endif
    @endif @if($bookingData['booking_detail']['status'] === 'hold')
    @endif @if($bookingData['booking_detail']['status'] === 'pending_approval')
    {{__('landingpage.waiting_for_response')}}...
    @endif
    @php $imageSource = null; if ($bookingData['bookingpackage'] == null) { $imageSource = !empty($bookingData['service']['attchments']) ? $bookingData['service']['attchments'][0] : null; } else { $imageSource = !empty($bookingData['bookingpackage']['package_image']) ? $bookingData['bookingpackage']['package_image'] : null; } @endphp service-detail
    @if(!empty($bookingData['booking_detail']['booking_package']))
    {{__('landingpage.include_package')}}
    @foreach($bookingData['booking_detail']['booking_package']['services'] as $servicepackage) @php $category = App\Models\Category::where('id', $servicepackage['category_id'])->first(); $subcategory = App\Models\SubCategory::where('id', $servicepackage['subcategory_id'])->first(); @endphp
    service-image
    {{ $servicepackage['name'] }}
    • {{ $category->name }}
    • {{ $subcategory ? $subcategory->name : null }}
    {{ getPriceFormat($servicepackage['price']) }}
    @endforeach
    @endif @if($bookingData['booking_detail']['BookingAddonService'])
    {{__('landingpage.Add-ons')}}
    @foreach($bookingData['booking_detail']['BookingAddonService'] as $serviceaddon)
    service-image
    {{ $serviceaddon['name'] }}
    {{ getPriceFormat($serviceaddon['price']) }}
    @endforeach
    @endif
    @if(!empty($bookingData['handyman_data'])) @endif
    {{__('landingpage.about_provider')}}
    {{ $bookingData['provider_data']['display_name'] }}
    @if(!empty($bookingData['handyman_data']))
    {{__('landingpage.about_handyman')}}
    @foreach($bookingData['handyman_data'] as $handyman)
    {{ $handyman['display_name'] }}
    @php $handymanrating = App\Models\HandymanRating::where('booking_id', $bookingData['booking_detail']['id'])->where('customer_id', auth()->user()->id)->where('handyman_id',$handyman['id'])->first(); @endphp @if($bookingData['booking_detail']['status'] == 'completed') @endif
    @endforeach
    @endif
    @if($bookingData['booking_detail']['amount'] > 0)
    {{__('landingpage.price_detail')}}
    @if(!empty($bookingData['booking_detail']['final_discount_amount'])) @endif @if(!empty($bookingData['booking_detail']['extra_charges_value'])) @endif @if($bookingData['coupon_data']) @endif @if($bookingData['service']['is_enable_advance_payment']==1) @endif
    {{__('messages.price')}} {{ getPriceFormat($bookingData['booking_detail']['amount']) }}
    {{__('messages.discount')}} ({{$bookingData['booking_detail']['discount']}}% {{__('landingpage.off')}}) -{{ getPriceFormat($bookingData['booking_detail']['final_discount_amount']) }}
    {{__('landingpage.subtotal')}} {{ getPriceFormat($bookingData['booking_detail']['amount']) }}
    {{__('landingpage.total_extra_charges')}} {{ getPriceFormat($bookingData['booking_detail']['extra_charges_value']) }}
    {{__('landingpage.coupon')}} ({{$bookingData['coupon_data']['code']}}) -{{ getPriceFormat($bookingData['coupon_data']['discount']) }}
    {{__('landingpage.tax')}} @if($bookingData['booking_detail']['final_total_tax']>0) +{{ getPriceFormat($bookingData['booking_detail']['final_total_tax']) }} @else +{{ getPriceFormat($bookingData['booking_detail']['final_total_tax']) }} @endif
    {{__('landingpage.total')}}
    {{ getPriceFormat($bookingData['booking_detail']['total_amount'] + $bookingData['booking_detail']['extra_charges_value']) }}
    {{__('landingpage.advance_payment')}}
    @php $advance_payment_amount = ($bookingData['booking_detail']['total_amount']* $bookingData['service']['advance_payment_amount'])/100; $advance_payment_amount = round($advance_payment_amount, 2); @endphp
    {{ getPriceFormat(($bookingData['booking_detail']['total_amount']* $bookingData['service']['advance_payment_amount'])/100) }}
    @if(count($bookingData['booking_detail']['extra_charges']) > 0)
    {{__('landingpage.extra_charges')}}
    @foreach($bookingData['booking_detail']['extra_charges'] as $charge) @endforeach
    {{$charge['title']}}
    {{ getPriceFormat($charge['price']) }}*{{ $charge['qty'] }} = {{ getPriceFormat($charge['price']*$charge['qty']) }}
    @endif @if(!empty($bookingData['booking_detail']['payment_id']))
    {{__('landingpage.payment_detail')}}
    @if($bookingData['booking_detail']['txn_id']) @endif
    {{__('landingpage.id')}} #{{ $bookingData['booking_detail']['payment_id'] }}
    {{__('messages.method')}} {{ $bookingData['booking_detail']['payment_method'] }}
    {{__('messages.status')}} {{ str_replace("_"," ",$bookingData['booking_detail']['payment_status']) }}
    {{__('landingpage.transaction_id')}} {{ $bookingData['booking_detail']['txn_id'] }}
    @endif
    @endif
    @if($bookingData['booking_detail']['payment_id'] !== null && $bookingData['booking_detail']['payment_status']=='paid' && $bookingData['booking_detail']['status']=='completed') {{__('landingpage.request_invoice')}} @endif
    @if(($bookingData['service']['is_enable_advance_payment']==1 && $bookingData['booking_detail']['payment_id'] == null) || ($bookingData['service']['is_enable_advance_payment']==1 && $bookingData['booking_detail']['payment_status'] == 'failed' || $bookingData['booking_detail']['payment_status'] == 'pending')) {{__('landingpage.pay_advance')}} @endif @if($bookingData['service']['visit_type'] == 'ONLINE' && $bookingData['booking_detail']['status'] == 'completed' && ($bookingData['booking_detail']['payment_id'] == null || $bookingData['booking_detail']['payment_status'] == 'failed' || $bookingData['booking_detail']['payment_status'] == 'pending')) {{__('landingpage.pay_now')}} @endif
    @php $bookingRating = App\Models\BookingRating::where('booking_id', $bookingData['booking_detail']['id'])->where('customer_id', auth()->user()->id)->first(); if(!empty($bookingRating)){ $bookingRating->display_name = $bookingRating->customer->display_name; $bookingRating->profile_image = getSingleMedia($bookingRating->customer, 'profile_image',null); $bookingRating->date = date($date_time['date_format'], strtotime($bookingRating->created_at)); } @endphp @if($bookingData['booking_detail']['status'] == 'completed') @endif @if(count($bookingData['rating_data']) !== 0)
    {{ count($bookingData['rating_data']) }} {{__('landingpage.review_for')}} {{$bookingData['booking_detail']['service_name']}}
      @php $counter = 1; @endphp @foreach($bookingData['rating_data'] as $ratingData)
    • @if($counter % 2 == 0)
      • @endif
        comment-user
        {{ date($date_time['date_format'], strtotime($ratingData['created_at'])) }}

        {{ $ratingData['review'] }}

        @if($counter % 2 == 0)
      @endif
    • @php $counter++; @endphp @endforeach
    @endif
    {{-- tax modal --}} @endsection @section('after_script') @endsection