@extends('admin::layouts.app') @section('content')
@include('admin::partials.title-pad', [ 'title' => 'Appointments Cost and Staff Report', 'search' => $search, 'searchPlaceholder' => 'Search Appointment Cost and Staff ...', 'list' => $orders, 'export' => 'admin.appointment-cost-reports.excel', 'filter' => true, ])
@forelse($orders as $key => $order) @empty @endforelse
# Appointment Id Customer Name & Phone Service Name Service Cost Total Discount Payment and Mode Status
{{ $key + 1 }} {{ isset($order->order_no) ? $order->order_no : '-' }} {{ isset($order->user->name) ? $order->user->name : '' }}
{{ isset($order->user->mobileCode->dial_code) ? $order->user->mobileCode->dial_code : '' }} {{ isset($order->user->mobile_number) ? $order->user->mobile_number : '' }}
{{ $order->services->count() > 0 ? ucwords($order->services->pluck('name_en')->implode(', ')) : 'NA' }} EGP{{ isset($order->total_amount) ? $order->total_amount : 0 }} EGP{{ isset($order->discount_amount) ? $order->discount_amount : 0 }} {{ isset($order->payment_mode) ? $order->payment_mode : '-' }} {{ ucfirst($order->status) }}

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

{{-- Pagination --}} {{ $orders->appends(request()->input())->links('admin::partials.pagination') }} {{-- Pagination End --}}
@endsection @section('script') @endsection