@extends('layouts.master') @push('head-css') @endpush @section('content')
@if ($current_url == 'backend')
@endif
@if ($user->roles()->withoutGlobalScopes()->latest()->first()->hasPermission('update_booking') && $user->roles()->withoutGlobalScopes()->first()->name != 'customer' && $current_emp_role->name != 'customer' && $booking->status != 'completed' && $booking->status != 'canceled') @lang('app.edit') @endif @if ($booking->status == 'pending') @if ($user->roles()->withoutGlobalScopes()->first()->hasPermission('create_booking') && $booking->date_time!='' && \Carbon\Carbon::parse($booking->date_time)->greaterThanOrEqualTo(\Carbon\Carbon::now()) && $current_emp_role->name != 'customer') @lang('modules.booking.sendReminder') @endif @endif @if ($user->roles()->withoutGlobalScopes()->first()->hasPermission('update_booking') && $booking->status != 'completed' && $booking->status != 'canceled') @endif
{{ ucwords($booking->user->name) }}
@lang('app.email')

{{ $booking->user->email ?? '--' }}

@lang('app.mobile')

{{ $booking->user->mobile ? $booking->user->formatted_mobile : '--' }}


@if ($booking->deal_id!='')
@lang('app.deal') @lang('app.name')
{{$booking->deal->title}}

@lang('app.deal') @lang('app.location')

{{$booking->deal->location->name}}

@lang('app.deal') @lang('app.quantity')

{{$booking->deal_quantity}}


@endif
@lang('app.booking') @lang('app.date')

@if ($booking->date_time != '') {{ \Carbon\Carbon::parse($booking->date_time)->format($settings->date_format) }} @endif

@lang('app.booking') @lang('app.time')

@if ($booking->date_time != '') {{ $booking->date_time }} @endif

@lang('app.booking') @lang('app.status')
{{ __('app.'.$booking->status) }}

@if(count($booking->users)>0)
@lang('menu.employee')

@foreach ($booking->users as $user)     {{$user->name}} @endforeach


@endif @if($booking->booking_type === 'online' && $meeting && ($meeting->start_link || $meeting->join_link))
@lang('app.bookingType')

@lang('app.online')


@if ($user->roles()->withoutGlobalScopes()->latest()->first()->hasPermission('create_booking') && $user->roles()->withoutGlobalScopes()->first()->name != 'customer' && $booking->users->first()->id === Auth::user()->id && $booking->status === 'approved') @lang('app.startMeeting') @elseif($booking->status === 'approved' && $booking->user->id === Auth::user()->id) @lang('app.joinMeeting') @endif

@endif
{{-- --}} @foreach($booking->items as $key=>$item) @if ($booking->deal_id!='') @else @endif {{-- --}} @endforeach
# @lang('app.item') @lang('app.unitPrice') @lang('app.quantity') @lang('app.amount')@lang('app.amount remaining')
{{ $key+1 }}. {{ ucwords(is_null($item->business_service_id) ? $item->product->name : $item->businessService->name) }}
@if(is_null($item->business_service_id)) @lang('app.product') @else @lang('app.service') @endif
{{ currencyFormatter(number_format((float)$item->unit_price, 2, '.', '')) }} x{{ $item->quantity }}{{ currencyFormatter(number_format((float)($item->unit_price * $item->quantity * $booking->deal_quantity), 2, '.', ''))}}{{ currencyFormatter(number_format((float)(is_null($item->business_service_id) ? $item->product->discounted_price * $item->quantity : $item->businessService->discounted_price * $item->quantity), 2, '.', ''))}}{{ currencyFormatter($booking->amountDue()) }}
@if ($user->can('update_booking')) @if($booking->payment_status == 'pending')
@endif @if($booking->payment_status == 'partial_payment')
@endif @endif @foreach ($booking->bookingPayments as $key => $payment) @endforeach @if ($commonCondition) @endif @if($booking->status == 'completed') @endif
# @lang('app.date') @lang('modules.booking.paymentMethod') @lang('app.amountPaid')
{{ ++$key }}. {{ \Carbon\Carbon::parse($payment->paid_on)->translatedFormat($settings->date_format) }} {{ $payment->gateway }} {{ ($payment->amount_paid != 0) ? currencyFormatter($payment->amount_paid) : currencyFormatter(0) }}
@lang('front.paymentMethod')
@if($credentials->stripe_status == 'active') @lang('front.buttons.stripe') @endif @if($credentials->paypal_status == 'active') @lang('front.buttons.paypal') @endif @if($credentials->paystack_status == 'active' && $booking->amount_to_pay > 0) @lang('front.buttons.paystack') @endif @if($credentials->razorpay_status == 'active') @lang('front.buttons.razorpay') @endif
@lang('app.print') @lang('app.receipt') @lang('app.download') @lang('app.receipt')
@if($booking->discount > 0) @endif @if ($booking->product_amount > 0) @endif @if($booking->coupon_discount > 0) @endif @if($booking->tax_amount > 0) @endif @endif @if($booking->payment_status == 'pending') {{ __('app.'.$booking->payment_status) }} @endif @if($booking->payment_status == 'partial_payment') {{ __('app.'.$booking->payment_status) }} @endif
@lang('app.serviceTotal') {{ currencyFormatter(number_format((float)$booking->original_amount, 2, '.', '')) }}
@lang('app.discount') {{ currencyFormatter(number_format((float)$booking->discount, 2, '.', '')) }}
@lang('app.productSubTotal') {{ currencyFormatter(number_format((float)$booking->product_amount, 2, '.', '')) }}
@lang('app.couponDiscount') ({{ $booking->coupon->title}}) {{ currencyFormatter(number_format((float)$booking->coupon_discount, 2, '.', '')) }}
@lang('app.totalTax') {{ currencyFormatter(number_format((float)$booking->tax_amount, 2, '.', '')) }}
@lang('app.total') {{ currencyFormatter(number_format((float)$booking->amount_to_pay, 2, '.', '')) }}
@lang('app.total') @lang('app.paid') {{ currencyFormatter(number_format((float)$booking->amountPaid(), 2, '.', '')) }}
@lang('app.amountRemaining') {{ currencyFormatter(number_format((float)$booking->amountDue(), 2, '.', '')) }}
@lang('modules.booking.paymentStatus') @if($booking->payment_status == 'completed') {{ __('app.'.$booking->payment_status) }}
@if(!is_null($booking->additional_notes))

@lang('modules.booking.additionalNote')

{!! $booking->additional_notes !!}

@endif {{-- @if ($booking->status == 'completed' && !$user->is_admin)

@lang('modules.booking.feedbackMessage')

@lang('modules.booking.giveFeedback')

😠😞😐😊😄

{{ $booking->feedback ? $booking->feedback->feedback_message : ''}}

@endif --}} {{--coupon detail Modal--}} {{--coupon detail Modal Ends--}}
@if ($current_url == 'backend') @endif @endsection @push('footer-js') @if ($credentials->paystack_status == 'active' && $commonCondition) @endif @if($credentials->stripe_status == 'active' && $commonCondition) @endif @if($credentials->razorpay_status == 'active' && $commonCondition) @endif {{-- open payment modal --}} @include("partials.currency_format") @endpush