@extends('layouts.app') @section('content') @php $locale = session()->get('locale') ? session()->get('locale') : App\Helpers\ConstantHelper::ENGLISH; @endphp

{{ __('label.appointment_history') }}

{{ __('static.showing_list', ['value1' => $orders->firstItem(), 'value2' => $orders->lastItem(), 'value3' => $orders->total()]) }}

@forelse ($orders as $key => $order) @php if ($order->status == App\Helpers\ConstantHelper::CANCELLED) { $class = 'badge-new-danger'; } elseif ($order->status == App\Helpers\ConstantHelper::PENDING) { $class = 'badge-new-secondary'; } else { $class = 'badge-new-success'; } @endphp @empty

{{ __('admin::message.no_records_found') }}

@endforelse
# {{ __('static.order_id') }} {{ __('label.artist_business') }} {{ __('static.assigned_to') }} {{ __('label.service') }} {{ __('label.amount') }} {{ __('label.date_time') }} {{ __('label.payment_status') }} {{ __('label.service_status') }} {{ __('label.action') }}
{{ ($orders->currentPage() - 1) * $orders->perPage() + $key + 1 }} {{ $order->order_no }}
logo

{{ isset($order->branch->companyProfile->company_name) ? $order->branch->companyProfile->company_name : (isset($order->branchOwner->name) ? $order->branchOwner->name : '') }}
{{ @$order->branch->address }} ({{ round($order->branch->distance) . 'Km' }})

{{ isset($order->staffUser->name) ? $order->staffUser->name : '' }} @foreach ($order->services as $service) {{ $locale == App\Helpers\ConstantHelper::ARABIC ? $service->name_ar : $service->name_en }} @unless ($loop->last) @endunless @endforeach {{ 'EGP ' . $order->payable_amount }} {{ date('d-m-Y', strtotime($order->date)) }}
{{ App\Helpers\GeneralHelper::timeFormat($order->start_time) }} to {{ App\Helpers\GeneralHelper::timeFormat($order->end_time) }}
@if ($order->payment_status == 'paid') {{ __('static.fully_paid') }} @elseif($order->payment_status == 'unpaid') {{ __('static.unpaid') }} @else {{ __('static.partial_paid') }} @endif {{ __('static.' . $order->status) }}
{{ $orders->appends(request()->input())->links('admin::partials.pagination') }}
@include('customer.appointment.filter-modal') {{-- Feedback --}} {{-- report --}} {{-- reschedule --}}
@endsection @section('script') @endsection