@extends('staffs.layout') @section('content')

{{ __('Welcome back,') }} {{ Auth::guard('staff')->user()->username . '!' }}

{{-- dashboard information start --}}

{{ __('Services') }}

{{ $totalServices }}

{{ __('All Appointments') }}

{{ $totalAppointment }}

{{ __('Pending Appointments') }}

{{ $totalPendingAppointment }}

{{ __('Accepted Appointments') }}

{{ $totalCompleteAppointment }}

{{ __('Rejected Appointments') }}

{{ $totalRejectedAppointment }}

{{ __('Recent Appointments') }}

@if (count($recent_appointments) > 0) {{ count($recent_appointments) }} {{ __('latest Appointments') }} @endif

@if (count($recent_appointments) == 0)

{{ __('NO APPOINTMENTS FOUND!') }}

@else
@foreach ($recent_appointments as $appointment) @php $position = $appointment->currency_text_position; $currency = $appointment->currency_text; @endphp @endforeach
{{ __('Order Number') }} {{ __('Service Title') }} {{ __('Amount') }} {{ __('Payment Status') }} {{ __('Status') }} {{ __('Actions') }}
{{ '#' . $appointment->order_number }} @if ($appointment->serviceContent->isNotEmpty()) @foreach ($appointment->serviceContent as $content) {{ strlen($content->name) > 20 ? mb_substr($content->name, 0, 20, 'utf-8') . '...' : $content->name }} @endforeach @else {{ '-' }} @endif {{ $appointment->currency_text_position == 'left' ? $appointment->currency_text . ' ' : '' }}{{ number_format($appointment->customer_paid, 2, '.', ',') }}{{ $appointment->currency_text_position == 'right' ? ' ' . $appointment->currency_text : '' }} @if ($appointment->payment_status == 'pending')

{{ __('Pending') }}

@elseif($appointment->payment_status == 'completed')

{{ __('Completed') }}

@else

{{ __('Rejected') }}

@endif
@if ($appointment->order_status == 'accepted')

{{ __('Accepted') }}

@else @if ($appointment->order_status == 'pending')

{{ __('Pending') }}

@else

{{ __('Rejected') }}

@endif @endif
{{ __('Detail') }}
@endif
@endsection