@extends('layouts.main') @section('content') @if (auth()->user()->role_id == 1)

Dashboard

Generate Report
Pengadaan
{{ $jumlahPeti }}
Peminjaman
{{ $jumlahPeminjaman }}
Pengembalian
{{ $jumlahPengembalian }}
Reminder Pengembalian
{{ $reminder }}
{{--
Grafik Peminjaman VS Pengembalian
@php $chartData = app('App\Http\Controllers\HomeController')->generateChartData(); @endphp
Grafik Pengadaan Peti
@php $chartDataPie = app('App\Http\Controllers\HomeController')->generateChartDataPie(); @endphp
--}} {{--
Grafik Peminjaman VS Pengembalian
@php $chartData = app('App\Http\Controllers\HomeController')->generateChartData(); @endphp
Grafik Pengadaan Peti
@php $chartDataPie = app('App\Http\Controllers\HomeController')->generateChartDataPie(); @endphp
--}}
Grafik Peminjaman VS Pengembalian
@php $chartData = app('App\Http\Controllers\HomeController')->generateChartData(); @endphp
Grafik Pengadaan Peti
@php $chartDataPie = app('App\Http\Controllers\HomeController')->generateChartDataPie(); @endphp
{{--
--}}
@push('script') {{-- --}} @endpush @elseif(auth()->user()->role_id == 2) @include('pages.user.dashboard.index') @endif @endsection