@php $sitesetup = App\Models\Setting::where('type','site-setup')->where('key', 'site-setup')->first(); $datetime = $sitesetup ? json_decode($sitesetup->value) : null; @endphp @if($rezorpayX_details ==null) {{__('messages.info_message')}} {{__('messages.here_is_the_link')}} @endif {{ !empty($data['dashboard']['count_total_booking']) ? $data['dashboard']['count_total_booking']: 0 }} {{ __('messages.total_name', ['name' => __('messages.bookings')]) }} {{ !empty($data['dashboard']['count_total_service']) ? $data['dashboard']['count_total_service'] : 0 }} {{ __('messages.total_name', ['name' => __('messages.services')]) }} {{ !empty($data['dashboard']['count_total_provider']) ? $data['dashboard']['count_total_provider'] : 0 }} {{ __('messages.total_name', ['name' => __('messages.providers')]) }} {{ getPriceFormat(round($data['total_revenue'])) }} {{ __('messages.total_name', ['name' => __('messages.revenue')]) }} {{__('messages.monthly_revenue')}} {{ __('messages.recent_provider') }} {{__('messages.view_all')}} @foreach($data['dashboard']['new_provider'] as $provider) {{!empty($provider->display_name) ? $provider->display_name : '-'}} {{round($provider->getServiceRating->avg('rating'), 1)}} @endforeach {{ __('messages.recent_customer') }} {{__('messages.view_all')}} @foreach($data['dashboard']['new_customer'] as $customer) {{!empty($customer->display_name) ? $customer->display_name : '-'}} {{ optional($datetime)->date_format && optional($datetime)->time_format ? \Carbon\Carbon::parse($customer->created_at) ->format(optional($datetime)->date_format) . ' / ' . \Carbon\Carbon::parse($customer->created_at) ->format(optional($datetime)->time_format) : '' }} @endforeach {{__('messages.recent_booking')}} {{__('messages.view_all')}} @foreach($data['dashboard']['upcomming_booking'] as $booking) #{{$booking->id}} {{ optional($datetime)->date_format && optional($datetime)->time_format ? date(optional($datetime)->date_format, strtotime($booking->date)) . ' / ' . date(optional($datetime)->time_format, strtotime($booking->date)) : '' }} {{-- {{(date("$datetime->date_format / $datetime->time_format", strtotime($booking->date)))}} --}} {{$booking->status}} @endforeach
{{__('messages.info_message')}} {{__('messages.here_is_the_link')}}
{{ __('messages.total_name', ['name' => __('messages.bookings')]) }}
{{ __('messages.total_name', ['name' => __('messages.services')]) }}
{{ __('messages.total_name', ['name' => __('messages.providers')]) }}
{{ __('messages.total_name', ['name' => __('messages.revenue')]) }}