@extends('layouts.master') @section('title', 'Statistics | Proxima - Medical Management app') @section('title-topbar', 'Statistics') @section('css') @endsection @section('content')
Dashboard | Invoice | Year invoices
Total yearly Income
@php $m1 = 0; $m2 = 0; $m3 = 0; $m4 = 0; $m5 = 0; $m6 = 0; $m7 = 0; $m8 = 0; $m9 = 0; $m10 = 0; $m11 = 0; $m12 = 0; @endphp @foreach ($income_items as $item) @foreach ($item->total as $item_total) @endforeach @php $m1 += $item->total[0]; $m2 += $item->total[1]; $m3 += $item->total[2]; $m4 += $item->total[3]; $m5 += $item->total[4]; $m6 += $item->total[5]; $m7 += $item->total[6]; $m8 += $item->total[7]; $m9 += $item->total[8]; $m10 += $item->total[9]; $m11 += $item->total[10]; $m12 += $item->total[11]; @endphp @endforeach
Name Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec
{{ $item->name }} @php @endphp {{ $item_total }} EGP
TOTAL {{ $m1 }} EGP {{ $m2 }} EGP {{ $m3 }} EGP {{ $m4 }} EGP {{ $m5 }} EGP {{ $m6 }} EGP {{ $m7 }} EGP {{ $m8 }} EGP {{ $m9 }} EGP {{ $m10 }} EGP {{ $m11 }} EGP {{ $m12 }} EGP
Total yearly Expenses
@php $m1 = 0; $m2 = 0; $m3 = 0; $m4 = 0; $m5 = 0; $m6 = 0; $m7 = 0; $m8 = 0; $m9 = 0; $m10 = 0; $m11 = 0; $m12 = 0; @endphp @foreach ($expenses_items as $item) @foreach ($item->total as $item_total) @endforeach @php $m1 += $item->total[0]; $m2 += $item->total[1]; $m3 += $item->total[2]; $m4 += $item->total[3]; $m5 += $item->total[4]; $m6 += $item->total[5]; $m7 += $item->total[6]; $m8 += $item->total[7]; $m9 += $item->total[8]; $m10 += $item->total[9]; $m11 += $item->total[10]; $m12 += $item->total[11]; @endphp @endforeach
Name Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec
{{ $item->name }} @php @endphp {{ $item_total }} EGP
TOTAL {{ $m1 }} EGP {{ $m2 }} EGP {{ $m3 }} EGP {{ $m4 }} EGP {{ $m5 }} EGP {{ $m6 }} EGP {{ $m7 }} EGP {{ $m8 }} EGP {{ $m9 }} EGP {{ $m10 }} EGP {{ $m11 }} EGP {{ $m12 }} EGP
Income totals cat
Expenses totals cat
Income totals by items
Expenses totals by items
Operation income invoices
Operation expenses invoices
@endsection @section('js') @php $chart_color = ['#1a78f1', '#38dfa8', '#d13c62', '#12c7d9', '#03c2c3', '#5035df', '#17a673', '#2e59d9', '#9aeded', '#f3d56a', '#7c859d', '#a4adc5', '#80142f', '#33d293', '#bed233', '#3958e9', '#10c86f', '#654fb6', '#a44fb6', '#89728e', '#c85110', '#6d769d', '#1b6954', '#204494', '#94206b', '#948320', '#209493', '#292094', '#203a65', '#4e6fa5', '#e29031', '#e23168', '#31e0e2', '#e29131', '#319fe2', '#8131e2', '#31a8e2', '#31e2c0', '#31c3e2', '#e2a931', '#3157e2']; @endphp @endsection