@extends('layouts.admin.app') @section('title', translate('messages.restaurant_report')) @push('css_or_js') @endpush @section('content')

{{ translate('Search_Data') }}

@php($typ= request()->restaurant_model)
@php($type= request()->type)
@if (isset($filter) && $filter == 'custom')
@endif

{{ translate('messages.Order_Statistics') }}

{{ translate('messages.Average_Order_Value') }} : {{ \App\CentralLogics\Helpers::format_currency(array_sum($data_avg)) }}
{{ \App\CentralLogics\Helpers::currency_symbol() }}({{ translate('messages.currency') }})

{{ translate('restaurant report table') }} {{ $restaurants->total() }}

@foreach ($restaurants as $key => $restaurant) @endforeach
{{ translate('SL ') }} {{ translate('messages.restaurant_Name') }} {{ translate('messages.total_food') }} {{ translate('messages.total_order') }} {{ translate('messages.total_order_amount') }} {{ translate('messages.total_discount_given') }} {{ translate('messages.total_admin_commission') }} {{ translate('messages.total VAT/TAX') }} {{ translate('messages.average_ratings') }}
{{ $key + $restaurants->firstItem() }} {{ $restaurant['logo'] }} image
{{ Str::limit($restaurant->name, 20, '...') }}
{{ $restaurant->foods_count }} {{$restaurant->without_refund_total_orders_count }} {{ \App\CentralLogics\Helpers::format_currency($restaurant->transaction_sum_order_amount) }} {{\App\CentralLogics\Helpers::format_currency( $restaurant->transaction_sum_restaurant_expense)}} {{\App\CentralLogics\Helpers::format_currency( $restaurant->transaction_sum_admin_commission)}} {{\App\CentralLogics\Helpers::format_currency( $restaurant->transaction_sum_tax)}}
@if ($restaurant->reviews_count) @php($reviews_count = $restaurant->reviews_count) @php($reviews = $reviews_count) @else @php($reviews = 0) @php($reviews_count = 1) @endif {{ round($restaurant->reviews_sum_rating /$reviews_count,1) }} ({{ $reviews }})
@if (count($restaurants) !== 0)
@endif
{!! $restaurants->links() !!}
@if (count($restaurants) === 0)
public
{{ translate('no_data_found') }}
@endif
@endsection @push('script') @endpush @push('script_2') @endpush