@extends('staffs.layout') @section('content')
@if (count($recent_appointments) > 0) {{ count($recent_appointments) }} {{ __('latest Appointments') }} @endif
{{ __('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') }} |