@extends('layouts.master') @section('top') @endsection @section('content') @if(Auth::check() && Auth::user()->role == "admin")

{{ \App\User::count() }}

Users

More info

{{ \App\Staff::count() }}

Staff

More info

{{ \App\Customer::count() }}

Customer

More info

{{ \App\Supplier::count() }}

Supplier

More info

{{ \App\Category::count() }}

Category

More info

{{ \App\Product::count() }}

Product

More info

{{ \App\Product_Masuk::count() }}

Product In

More info

{{ \App\Product_Keluar::count() }}

Product Out

More info

Items Out (Loaned)

@if ($loanedItems->isEmpty())

Empty data: No items are currently borrowed.

@else
    @foreach ($loanedItems as $item)
  • {{ $item['nama_barang'] }} - Serial Number: {{ $item['sn'] }} - Borrowed by: {{ $item['dipinjam_oleh'] }}
  • @endforeach
@endif

Top 5 Customers with Most Loans (Loaned)

@if ($topCustomersEmpty)

Empty data: No customers are borrowing items at the moment.

@else
    @foreach ($topCustomers as $customer)
  • {{ $customer->nama }} - Loan: {{ $customer->product_keluar_count }} barang
  • @endforeach
@endif

Incoming and Outgoing Chart (Pie)

Product Count by Brand

@elseif (Auth::check())

{{ \App\Product::count() }}

Product

More info

{{ \App\Product_Masuk::count() }}

Product In

More info

{{ \App\Product_Keluar::count() }}

Product Out

More info

{{ \App\Staff::count() }}

Staff

More info

{{ \App\Customer::count() }}

Customer

More info

{{ \App\Supplier::count() }}

Supplier

More info

Items Out (Loaned)

@if ($loanedItems->isEmpty())

Empty data: No items are currently borrowed.

@else
    @foreach ($loanedItems as $item)
  • {{ $item['nama_barang'] }} - Serial Number: {{ $item['sn'] }} - Borrowed by: {{ $item['dipinjam_oleh'] }}
  • @endforeach
@endif

Top 5 Customers with Most Loans (Loaned)

@if ($topCustomersEmpty)

Empty data: No customers are borrowing items at the moment.

@else
    @foreach ($topCustomers as $customer)
  • {{ $customer->nama }} - Loan: {{ $customer->product_keluar_count }} barang
  • @endforeach
@endif

Incoming and Outgoing Chart (Pie)

Product Count by Brand

@endif @endsection @section('top') @endsection