@extends('layouts.app')

@section('title')
  Dashboard
@endsection

@section('admin-content')
    <section class="content-header">
        <div class="container-fluid">
            <div class="row mb-2">
                <div class="col-sm-6">
                    <h1>Home</h1>
                </div>
                <div class="col-sm-6">
                    <ol class="breadcrumb float-sm-right">
                        <li class="breadcrumb-item"><a href="{{ route('dashboard.index') }}">Dashboard</a></li>
                    </ol>
                </div>
            </div>
        </div>
    </section>
    <section class="content">
        <div class="container-fluid">
            <!-- Statistic Cards Grid -->
            <div class="row row-cols-2 row-cols-md-2 row-cols-lg-3 g-4">
                <!-- Statistic Card 1 -->
                <div class="col">
                    <div class="small-box bg-info">
                        <div class="inner">
                           <h3>Rp {{ number_format($forms['vehicle'] + $forms['entertainment'] + $forms['meeting'] + $forms['upcountry'] + $forms['others'], 0, ',', '.') }}</h3>
                            <p>All Approved Expenses</p>
                        </div>
                        <div class="icon">
                            <i class="fas fa-check-circle"></i>
                        </div>
                        <a href="#" class="small-box-footer">
                            More info <i class="fas fa-arrow-circle-right"></i>
                        </a>
                    </div>
                </div>
                <!-- Statistic Card 2 -->
                <div class="col">
                    <div class="small-box bg-success">
                        <div class="inner">
                            <h3>Rp {{ number_format($forms['upcountry'], 0, ',', '.') }}</h3>
                            <p>Approved Up Country Expenses</p>
                        </div>
                        <div class="icon">
                            <i class="fa fa-flag" aria-hidden="true"></i>
                        </div>
                        <a href="{{ route('forms.up-country') }}" class="small-box-footer">
                            More info <i class="fas fa-arrow-circle-right"></i>
                        </a>
                    </div>
                </div>
                <!-- Statistic Card 3 -->
                <div class="col">
                    <div class="small-box bg-warning">
                        <div class="inner text-white">
                            <h3>Rp {{ number_format($forms['vehicle'], 0, ',', '.') }}</h3>
                            <p>Approved Vehicle Running Cost Expenses</p>
                        </div>
                        <div class="icon">
                            <i class="fa fa-car" aria-hidden="true"></i>
                        </div>
                        <a href="{{ route('forms.vehicle') }}" class="small-box-footer text-white">
                            <span class="text-white">More info</span> <i class="fas fa-arrow-circle-right text-white"></i>
                        </a>
                    </div>
                </div>
                <!-- Statistic Card 4 -->
                <div class="col">
                    <div class="small-box bg-purple">
                        <div class="inner">
                            <h3>Rp {{ number_format($forms['entertainment'], 0, ',', '.') }}</h3>
                            <p>Approved Entertainment Presentation Expenses</p>
                        </div>
                        <div class="icon">
                            <i class="fa fa-desktop" aria-hidden="true"></i>
                        </div>
                        <a href="{{ route('forms.entertainment') }}" class="small-box-footer">
                            More info <i class="fas fa-arrow-circle-right"></i>
                        </a>
                    </div>
                </div>
                <!-- Statistic Card 5 -->
                <div class="col">
                    <div class="small-box bg-danger">
                        <div class="inner">
                            <h3>Rp {{ number_format($forms['meeting'], 0, ',', '.') }}</h3>
                            <p>Approved Meeting Seminar Expenses</p>
                        </div>
                        <div class="icon">
                            <i class="fa fa-users" aria-hidden="true"></i>
                        </div>
                        <a href="{{ route('forms.meeting') }}" class="small-box-footer">
                            More info <i class="fas fa-arrow-circle-right"></i>
                        </a>
                    </div>
                </div>
                <!-- Statistic Card 6 -->
                <div class="col">
                    <div class="small-box bg-pink">
                        <div class="inner">
                            <h3>Rp {{ number_format($forms['others'], 0, ',', '.') }}</h3>
                            <p>Approved Other Expenses</p>
                        </div>
                        <div class="icon">
                            <i class="fa fa-bars" aria-hidden="true"></i>
                        </div>
                        <a href="{{ route('forms.other') }}" class="small-box-footer">
                            More info <i class="fas fa-arrow-circle-right"></i>
                        </a>
                    </div>
                </div>
            </div>
            <!-- Welcome Card -->
            <div class="card card-primary card-outline mt-4">
                <div class="card-body text-center">
                    <p class="lead">Welcome to {{ config('app.name') }} (development version).</p>
                </div>
            </div>
        </div>
    </section>
@endsection