@extends('layouts.dashboard') @section('dash_nav') @include('client_view.home_dashboard.main_navs',['active'=>'breadkdown_dashboard']) {{-- --}} @endsection @section('css') @endsection @section('content') @php $exportableFields = (new \App\Http\Controllers\ExportTable)->customizedTableField($company, 'SalesGathering', 'selected_fields'); $exportableFieldsValues = array_keys($exportableFields); if(in_array('document_type' , $exportableFieldsValues) && in_array('document_number' , $exportableFieldsValues) ) { $exportableFieldsValues[] = 'invoice_count'; $exportableFieldsValues[] = 'product_item_avg_count'; $exportableFieldsValues[] = 'avg_invoice_value'; } @endphp

{{ __('Dashboard Results') }}

@csrf
{{-- Title --}}

@foreach ($types as $type => $color)

{{ __('Top '. ucwords(str_replace('_',' ',$type))) }}

{{-- --}}

{{ __( '[ ' .($top_data[$type]['item'] ?? ' - ')) .' ] ' .number_format(($top_data[$type]['Sales Value']??0)) }}
@endforeach
@foreach ($reports_data as $type => $report_data)

{{ __(ucwords(str_replace('_',' ',$type)).' Breakdown Analysis') }}

{{-- Monthly Chart --}}

{{ __('Sales Values') }}

{{--

{{__('From : ')}} {{ $dates['start_date']}} - {{__('To : ') }} {{ $dates['end_date']}}
{{__('Last Updated Data Date : ') }} {{ $last_date}}

--}}

Warning: Undefined variable $type in /home/cfostools/public_html/cfohotel.evoqas.com/resources/views/client_view/home_dashboard/dashboard_breakdown.blade.php on line 392

Warning: Undefined variable $type in /home/cfostools/public_html/cfohotel.evoqas.com/resources/views/client_view/home_dashboard/dashboard_breakdown.blade.php on line 392
@slot('table_header') {{-- # --}} {{ __(ucwords(str_replace('_',' ',$type))) }} {{ __('Sales Values') }} {{ __('Percentages %') }} @if (isset($report_count_data) && count($report_count_data) > 0) {{ __('Count') }} {{ __('Count %') }} @endif @endslot @slot('table_body') @foreach ($report_data as $key => $item) {{-- {{($key??0)+1}} --}} {{$item['item']?? '-'}} {{number_format($item['Sales Value']??0)}} {{$total == 0 ? 0 : number_format((($item['Sales Value']/$total)*100) , 1) . ' %'}} @if (isset($report_count_data) && count($report_count_data) > 0) {{ $report_count_data[$key]['Count'] }} {{$total == 0 ? 0 : number_format((($report_count_data[$key]['Count'] /$total_count)*100) , 1) . ' %'}} @endif @endforeach {{__('Total')}} {{-- --}} {{number_format($total)}} 100 % @if (isset($report_count_data) && count($report_count_data) > 0) {{ $total_count }} 100 % @endif @endslot
@endforeach
@endsection @section('js') @foreach ($types as $type => $color) @endforeach @foreach ($types as $type=>$brand) @endforeach @foreach ($types as $type=>$brand) @endforeach @endsection