@extends('layouts.admin') @section('title', 'Admin Dashboard') @section('page-title', 'Admin Dashboard') @section('content')
Total Users

{{ $userCount }}

Total Items

{{ $itemCount }}

Sales Orders

{{ $salesOrderCount }}

Revenue

₹{{ number_format($totalRevenue, 2) }}

Recent Items
View All
@forelse ($recentItems as $item) @empty @endforelse
ID Item Name Length Width Height Weight Actions
{{ $item->id }} {{ $item->item_name }} {{ $item->length }} {{ $item->width }} {{ $item->height }} {{ $item->weight }}
No items found
Reinvoicing
@forelse ($reinvoicingRecords as $rec) @empty @endforelse
ID SO No Location Created Data (preview)
{{ $rec->id }} {{ $rec->so_no ?? '-' }} {{ $rec->location_id ?? '-' }} @if(isset($rec->created_at)) {{ \Carbon\Carbon::parse($rec->created_at)->format('Y-m-d H:i') }} @else - @endif @php $short = '-'; try { $arr = json_decode($rec->data, true); if (is_array($arr)) { $short = json_encode(array_slice($arr, 0, 5)); } } catch (\Throwable $e) { $short = substr((string) $rec->data, 0, 60) . '...'; } @endphp {{ $short }}
No reinvoicing records found
Recent Sales Orders
View All
@forelse ($recentSalesOrders as $order) @empty @endforelse
SO No Item Category Qty Rate Total
{{ $order->so_no }} {{ $order->item_name }} {{ $order->category }} {{ $order->qty }} ₹{{ number_format((float)$order->rate, 2) }} ₹{{ number_format((float)$order->qty * (float)$order->rate, 2) }}
No sales orders found
@endsection