@extends('layouts.master') @section('title') لوحة التحكم - برنامج الفواتير @stop @section('css') @endsection @section('page-header') @endsection @section('content')
اجمالي الفواتير

{{ number_format(\App\invoices::sum('Total'), 2) }}

{{ \App\invoices::count() }}

100%
5,9,5,6,4,12,18,14,10,15,12,5,8,5,12,5,12,10,16,12
الفواتير الغير مدفوعة

{{ number_format(\App\invoices::where('Value_Status', 2)->sum('Total'), 2) }}

{{ \App\invoices::where('Value_Status', 2)->count() }}

@php $count_all= \App\invoices::count(); $count_invoices2 = \App\invoices::where('Value_Status', 2)->count(); if($count_invoices2 == 0){ echo $count_invoices2 = 0; } else{ echo $count_invoices2 = $count_invoices2 / $count_all *100; } @endphp
3,2,4,6,12,14,8,7,14,16,12,7,8,4,3,2,2,5,6,7
الفواتير المدفوعة

{{ number_format(\App\invoices::where('Value_Status', 1)->sum('Total'), 2) }}

{{ \App\invoices::where('Value_Status', 1)->count() }}

@php $count_all= \App\invoices::count(); $count_invoices1 = \App\invoices::where('Value_Status', 1)->count(); if($count_invoices1 == 0){ echo $count_invoices1 = 0; } else{ echo $count_invoices1 = $count_invoices1 / $count_all *100; } @endphp
5,10,5,20,22,12,15,18,20,15,8,12,22,5,10,12,22,15,16,10
الفواتير المدفوعة جزئيا

{{ number_format(\App\invoices::where('Value_Status', 3)->sum('Total'), 2) }}

{{ \App\invoices::where('Value_Status', 3)->count() }}

@php $count_all= \App\invoices::count(); $count_invoices1 = \App\invoices::where('Value_Status', 1)->count(); if($count_invoices1 == 0){ echo $count_invoices1 = 0; } else{ echo $count_invoices1 = $count_invoices1 / $count_all *100; } @endphp
5,9,5,6,4,12,18,14,10,15,12,5,8,5,12,5,12,10,16,12

نسبة احصائية الفواتير

{!! $chartjs->render() !!}
{!! $chartjs_2->render() !!}
@endsection @section('js') @endsection