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

Income & Expense

Account Balance

@foreach($accounts as $account) @endforeach
Name Account No. Balance
{{ $account->name }} {{ $account->account_no }} {{ '$'.$account->amount }}

Latest Orders

@foreach($orders as $order) @endforeach
Order No. Package Customer Amount Date
{{ $order->orderNumber }} {{ $order->package->title }} {{ $order->user->accountId }} {{ '$'.($order->price - $order->discount_amount) }} {{ date('d M Y',strtotime($order->created_at)) }}

Cashflow

Income

Income Today

${{$todayIncome}}

Income Weekly

${{$thisWeekIncome}}

Income Monthly

${{$thisMonthIncome}}

Income Yearly

${{$thisYearIncome}}

Transactions History

@foreach($transactionHistory as $trans) @if($trans->type=='C') @else @endif @endforeach

{{ $trans->account->name }}

{{ date('d M Y - H:i A',strtotime($trans->created_at))}}

+${{$trans->amount}}

-${{$trans->amount}}

@endsection @push('scripts') @endpush