@extends('vendors.layout') @section('content')
@includeIf('vendors.partials.languages')
@if (count($booking_item) == 0)

{{ __('NO APPOINTMENT FOUND') . '!' }}

@else
@foreach ($booking_item as $item) @php $symbol = $item->currency_symbol; $symbol_positon = $item->currency_symbol_position; @endphp @includeIf('vendors.appointment.staff-assign') @endforeach
{{ __('Booking ID.') }} {{ __('Service Title') }} {{ __('Amount') }} {{ __('Appointment Date') }} {{ __('Payment Status') }} {{ __('Order Status') }} {{ __('Staff') }} {{ __('Refund Status') }} {{ __('Action') }}
{{ '#' . $item->order_number }} @if ($item->serviceContent->isNotEmpty()) @foreach ($item->serviceContent as $content) {{ truncateString($content->name, 30) }} @endforeach @else {{ '-' }} @endif {{ $symbol_positon == 'left' ? $symbol : '' }}{{ number_format($item->customer_paid, 2, '.', ',') }}{{ $symbol_positon == 'right' ? $symbol : '' }} {{ \Carbon\Carbon::parse($item->booking_date)->format('M d, Y') }} @if ($item->gateway_type == 'online')

{{ __('Completed') }}

@else @if ($item->payment_status == 'pending')

{{ __('Pending') }}

@else

{{ ucfirst($item->payment_status) }}

@endif @endif
@if (!empty($item->service->id)) @if ($item->order_status == 'pending')
@csrf
@else

{{ ucfirst($item->order_status) }}

@endif @else {{ '-' }} @endif
@if ($item->staff_id == null) {{ __('Assign') }} @else @php $staffContent = App\Models\Staff\StaffContent::where('staff_id', $item->staff_id) ->where('language_id', $defaultLang->id) ->select('name') ->first(); @endphp {{ $staffContent->name ?? $item->staff->username }} @endif

{{ ucfirst($item->refund) }}

@endif
@endsection