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

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

@else
@foreach ($booking_item as $item) @php $symbol = $item->currency_symbol; $symbol_positon = $item->currency_symbol_position; @endphp @includeIf('admin.appointment.show-receipt') @includeIf('admin.appointment.staff-assign') @endforeach
{{ __('Booking ID') }} {{ __('Service Title') }} {{ __('Vendor') }} {{ __('Amount') }} {{ __('Paid Via') }} {{ __('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 @if ($item->vendor_id != 0) {{ $item->vendor->username }} @else {{ __('Admin') }} @endif {{ $symbol_positon == 'left' ? $symbol : '' }}{{ number_format($item->customer_paid, 2, '.', ',') }}{{ $symbol_positon == 'right' ? $symbol : '' }} {{ $item->payment_method }} @if ($item->gateway_type == 'online')

{{ __('Completed') }}

@else @if ($item->payment_status == 'pending')
@csrf
@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 @if ($item->refund != 'refunded')
@csrf
@else

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

@endif
@endif
@endsection