@php $extraValue = 0; $sitesetup = App\Models\Setting::where('type','site-setup')->where('key', 'site-setup')->first(); $datetime = $sitesetup ? json_decode($sitesetup->value) : null; @endphp

{{__('messages.book_placed')}}

{{ date("$datetime->date_format / $datetime->time_format", strtotime($bookingdata->created_at))}}

{{__('messages.booking_status')}}

{{ App\Models\BookingStatus::bookingStatus($bookingdata->status)}}

{{__('messages.payment_status')}}

{{ ucwords(str_replace('_', ' ', optional($bookingdata->payment)->payment_status ?: 'pending'))}}

{{__('messages.booking_amount')}}

{{!empty($bookingdata->total_amount) ? getPriceFormat($bookingdata->total_amount + $extraValue ): 0}}

@if($bookingdata->handymanAdded->count() !== 0 )
@foreach($bookingdata->handymanAdded as $booking)

{{__('messages.handyman_information')}}

{{optional($booking->handyman)->display_name ?? '-'}}
@endforeach
@endif

{{__('messages.provider_information')}}

{{optional($bookingdata->provider)->display_name ?? '-'}}
@if(count($bookingdata->bookingActivity) > 0)
    @foreach($bookingdata->bookingActivity as $activity)
  • {{str_replace("_"," ",ucfirst($activity->activity_type))}}
    {{ date("$datetime->date_format / $datetime->time_format", strtotime($activity->datetime))}}

    {{$activity->activity_message}}

  • @endforeach
@endif