@extends('admin.layouts.master') @section('title', 'Dashboard') @section('content')

{{ __('Welcome back,') }} {{ Auth::user()->name }}!

Orders Summary

{{-- --}} {{-- --}} {{-- --}} {{-- --}}

Invoices Summary

@php $total = \App\Models\Order::whereHas('invoice')->sum('grand_total'); $EAtotal = \App\Models\Order::whereHas('invoice', function ($query) { $query->where('company_id', '3'); })->sum('grand_total'); $FAtotal = \App\Models\Order::whereHas('invoice', function ($query) { $query->where('company_id', '4'); })->sum('grand_total'); $totalPaind = \App\Models\Order::whereHas('invoice')->where("payment_status", "paid")->sum('grand_total'); $totalPending = \App\Models\Order::whereHas('invoice')->where("payment_status", "pending")->sum('grand_total'); @endphp {{--

Today Customers

--}} {{-- --}} {{-- --}} {{-- --}} {{-- --}}
@endsection