@extends('layouts.app') @section('content')

@convert($total_exp)

Bills

Expense made today

@convert($orders = \DB::table('orders')->whereDate('created_at', $dayClose->day_close)->count())

Orders

7.5% since last week

@convert($sales = \DB::table('invoices')->where('invoice_category', '!=', "TRANSPORT") ->where('invoice_status', 1) ->whereDate('created_at', $dayClose->day_close) ->sum('invoice_total_price') - $discount)

Revenue

@convert($sales/($orders == 0 ? 1 : $orders)) Average Sales
@include('modal.all-reports')
@endsection