@section('page_title')
@csrf

{{ $page_title }}

@endsection @section('page_content')
@foreach ($submit_status as $k => $val)

{{ $overview_data[$k]['count'] }}

{{ $val }}
@endforeach @if (!$status) @foreach (config('env.deals_close_status') as $k => $val)

{{ $overview_data[$k]['count'] }}

{{ $val }}
@endforeach @endif

Donut Chart

Line Chart

Deal Breakdown By Status

@foreach ($submit_status as $k => $val)
@if (count($overview_data[$k]) > 0)
@if (sizeof($overview_data[$k]['data']) == 0) @else @foreach ($overview_data[$k]['data'] as $deal) @endforeach @endif
Deal Name Amount Account Name Created At Action
No data found
{{ $deal->name }} ${{ $deal->amount }} {{ $deal->account->name ?? '---' }} {{ \Carbon\Carbon::parse($deal->created_at)->toDateTimeString() }}
Total Amount: ${{ $overview_data[$k]['total'] }} Total Count: {{ $overview_data[$k]['count'] }}
@endif
@endforeach
@endsection