{{ $profits }}
Total Profit
{{ $profits_this_month }}
Monthly Total Profit
{{ $order_this_month }}
Monthly Order
{{ $totalbuyings }}
Total Buying Price
{{ $totalsellings }}
Total Selling Price
{{ $totalsellings - $totalbuyings }}
Approx Profit
{{ $total_sell_count_this_month }}
Total Sell This Month
{{ $total_sell_today }}
Total Sell Today
{{ $profit_today }}
Today Profit
{{ $total_due }}
Total Due
{{ $handcash + $total_sell_today - $purchased - $today_due}}
Cash In Hand Today
{{ ($profits/100)*$item->share }}
{{ $item->name }}'s Total Profit
{{ ($profits_this_month/100)*$item->share }}
{{ $item->name }}'s Profit This Month
@php
$supply = DB::table('products')->where('status', 1 )->count();
@endphp
{{ $supply }}
Sorted Supply
@php
$unsupply = DB::table('products')->where('status', 0 )->count();
@endphp
{{ $unsupply }}
Unsorted Supply
{{--
--}}
@php
$month = Carbon\Carbon::now()->format('m');
$completed = DB::table('orders')->whereMonth('created_at',$month)->where('status',1)->count();
$unpaid = DB::table('orders')->whereMonth('created_at',$month)->where('status',0)->count();
@endphp
{{--
--}}
@foreach ($top_products as $item)
@foreach ($customers as $item)
Sales Of The Year
Sales Overview
Sold by Units
| {{ $item->name }} | @php $top_product_count = 0; foreach($item->orders as $order) { $top_product_count += $order->quantity; } @endphp{{ $top_product_count }} |
New Customers
{{ $item->name }}{{ $item->email }} |
{{ $item->orders->count() }} Orders | {{ $item->orders->sum('total') }} BDT |
Recent Orders
| Order ID | Order Date | Order Cost |
|---|---|---|
| {{ $item->id }} | {{ Carbon\Carbon::parse($item->created_at)->format('d M, Y') }} | {{ $item->total }} BDT |