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

Total Products

Today: {{$products_addedtoday}}

MTD: {{$products_addedthismonth}}

YTD: {{$products_addedthisyear}}

Total Inventory

Today: ${{number_format($inventory_addedtoday, 2, '.', ',')}}

MTD: ${{number_format($inventory_addedthismonth, 2, '.', ',')}}

YTD: ${{number_format($inventory_addedthisyear, 2, '.', ',')}}

Total Orders

Today: {{$orders_addedtoday}}

MTD: {{$orders_addedthismonth}}

YTD: {{$orders_addedthisyear}}

Total Orders To Fill

Today: {{$orders_pendingtoday}}

MTD: {{$orders_pendingthismonth}}

YTD: {{$orders_pendingthisyear}}

Latest Products

@if(count($latestProduct) > 0) @foreach ($latestProduct as $index => $item) @endforeach @else @endif
Item ID Product Details Category Quantity Price Action
{{ $index + 1 }}
  • cart prod

    {{ $item['name'] }}

{{ $item['category']['name'] }} {{ $item['quantity'] }}

${{ $item['price'] }}

No Products Added Today

Latest Orders

@if(count($latestOrder) > 0) @foreach ($latestOrder as $order) @endforeach @else @endif
Order Id Order Date(dd/mm/yy) Customer Billing Total Status Action
{{ $order['id'] }} {{ \Carbon\Carbon::parse($order['created_at'])->format('d-F-y') }} {{ $order['billing_fullname'] }} $ {{ $order['billing_total'] }}

{{ $order['status'] }}

No Orders Placed Today
@endsection