@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

{{__('messages.monthly_revenue')}}

{{ __('messages.recent_provider') }}

{{__('messages.view_all')}}
    @foreach($data['dashboard']['new_provider'] as $provider)
  • user-icon
    {{!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)
  • user-icon
    {{!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)
  • user-icon
    #{{$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