@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() }}

{{ translate('messages.export') }}
@foreach ($restaurants as $key => $restaurant) @endforeach
{{ translate('sl') }} {{ translate('messages.restaurant') }} {{ translate('messages.total_food') }} {{ translate('messages.total_order') }} {{ translate('messages.total_order') }} {{ translate('messages.amount') }} {{ translate('messages.total_discount_given') }} {{ translate('messages.total_admin_commission') }} {{ translate('messages.total_vat_tax') }} {{ translate('messages.average_ratings') }}
{{ $key + $restaurants->firstItem() }}
{{ 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') {{-- // labels: ["Jan","Feb","Mar","April","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"], --}} {{-- // var footerLine1 = [{{ $total_vendor_count[1] }},{{ $total_vendor_count[2] }},{{ $total_vendor_count[3] }},{{ $total_vendor_count[4] }},{{ $total_vendor_count[5] }},{{ $total_vendor_count[6] }},{{ $total_vendor_count[7] }},{{ $total_vendor_count[8] }},{{ $total_vendor_count[9] }},{{ $total_vendor_count[10] }},{{ $total_vendor_count[11] }},{{ $total_vendor_count[12] }}]; // var footerLine2 = [{{ $total_admin_commission[1] }},{{ $total_admin_commission[2] }},{{ $total_admin_commission[3] }},{{ $total_admin_commission[4] }},{{ $total_admin_commission[5] }},{{ $total_admin_commission[6] }},{{ $total_admin_commission[7] }},{{ $total_admin_commission[8] }},{{ $total_admin_commission[9] }},{{ $total_admin_commission[10] }},{{ $total_admin_commission[11] }},{{ $total_admin_commission[12] }}]; // var footerLine3 = [{{ $total_tax_amount[1] }},{{ $total_tax_amount[2] }},{{ $total_tax_amount[3] }},{{ $total_tax_amount[4] }},{{ $total_tax_amount[5] }},{{ $total_tax_amount[6] }},{{ $total_tax_amount[7] }},{{ $total_tax_amount[8] }},{{ $total_tax_amount[9] }},{{ $total_tax_amount[10] }},{{ $total_tax_amount[11] }},{{ $total_tax_amount[12] }}]; --}} @endpush