{{ !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')]) }}

{{ !empty($data['dashboard']['count_total_customer']) ? $data['dashboard']['count_total_customer'] : 0 }}

{{ __('messages.total_name', ['name' => __('messages.customer')]) }}

{{ 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)
  • 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 : '-'}}
    {{($customer->created_at)}}
  • @endforeach

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

{{__('messages.view_all')}}
    @foreach($data['dashboard']['upcomming_booking'] as $booking)
  • user-icon
    #{{$booking->id}}
    {{($booking->date)}}
    {{$booking->status}}
  • @endforeach