@extends('admin.layout') @section('content')
{{ __('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, 50) }} @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') @else{{ ucfirst($item->payment_status) }}@endif @endif |
@if (!empty($item->service->id))
@if ($item->order_status == 'accepted')
{{ 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')
@else
{{ ucfirst($item->refund) }}@endif |
|