@extends('layouts.appmin')

@section('tajuk')
Dashboard
@endsection


@section('breadcrumb')
    <ul class="breadcrumbs mb-3">
      <li class="nav-home">
        <a href="#">
          <i class="icon-home"></i>
        </a>
      </li>
      <li class="separator">
        <i class="icon-arrow-right"></i>
      </li>
      <li class="nav-item">
        <a href="#">Penjaja</a>
      </li>
    </ul>
@endsection

@section('content')

                    <div class="row">
                      <div class="col-sm-12 col-md-6">
                        <div class="card card-stats card-round">
                          <div class="card-body">
                            <div class="card-body">
                        <form action="{{route('admin.dashboard')}}" method="post"> <!--begin::Body-->
                            @csrf
                                <div class="row mb-3"> 
                                    <label for="ctahun" class="col-sm-2 col-form-label">Tahun</label>
                                    <div class="col-sm-8"> <input type="text" class="form-control" id="ctahun" name="ctahun"> </div>
                                    <div class="col-sm-2"> <button type="submit" class="btn btn-warning">Papar</button> </div>
                                </div>
                        </form> <!--end::Form-->
                            </div>
                          </div>
                        </div>
                      </div>
                      <div class="col-md-6">&nbsp;</div>
                    </div>
    @if (session('success'))
        <div class="alert alert-success" role="alert">
            {{ session('success') }}
        </div>
    @endif
    
    <h3 class="fw-bold mb-3">Timeline</h3>
    <div class="row">
      <div class="col-md-12">
        <ul class="timeline">
          <li>
            <div class="timeline-badge">
              <i class="far fa-paper-plane"></i>
            </div>
            <div class="timeline-panel">
              <div class="timeline-heading">
                <h4 class="timeline-title">Permohonan Baru</h4>
              </div>
              <div class="timeline-body">
                <div class="row">
                  <div class="col-sm-12 col-md-8">
                    <div class="numbers">
                      <h2>{{$baru}}</h2>
                    </div>
                  </div>
                  <div class="col-sm-12 col-md-4 col-stats">              
                    <div class="d-grid gap-2 d-md-flex justify-content-md-end">
                      <a href="{{route('pt.baru')}}" class="btn btn-primary btn-round">Papar</a>
                    </div>
                  </div>
                </div>
              </div>
            </div>
          </li>
          <li class="timeline-inverted">
            <div class="timeline-badge warning">
              <i class="far fa-bell"></i>
            </div>
            <div class="timeline-panel">
              <div class="timeline-heading">
                <h4 class="timeline-title">Menunggu Bayaran Proses</h4>
              </div>
              <div class="timeline-body">
                <div class="row">
                  <div class="col-sm-12 col-md-8">
                    <div class="numbers">
                      <h2>{{$belum_bayar_proses}}</h2>
                    </div>
                  </div>
                  <div class="col-sm-12 col-md-4 col-stats">              
                    <div class="d-grid gap-2 d-md-flex justify-content-md-end">
                      <a href="{{route('pt.proses')}}" class="btn btn-primary btn-round">Papar</a>
                    </div>
                  </div>
                </div>
              </div>
            </div>
          </li>
          <li>
            <div class="timeline-badge info">
              <i class="icon-tag"></i>
            </div>
            <div class="timeline-panel">
              <div class="timeline-heading">
                <h4 class="timeline-title">Wang Proses Diterima</h4>
              </div>
              <div class="timeline-body">
                <div class="row">
                  <div class="col-sm-12 col-md-8">
                    <div class="numbers">
                      <h2>{{$bayar_proses}}</h2>
                    </div>
                  </div>
                  <div class="col-sm-12 col-md-4 col-stats">              
                    <div class="d-grid gap-2 d-md-flex justify-content-md-end">
                      <a href="{{route('pt.bukafail')}}" class="btn btn-primary btn-round">Papar</a>
                    </div>
                  </div>
                </div>
              </div>
            </div>
          </li>
          <li class="timeline-inverted">
            <div class="timeline-badge danger">
              <i class="icon-close"></i>
            </div>
            <div class="timeline-panel">
              <div class="timeline-heading">
                <h4 class="timeline-title">Pemeriksaan Tapak</h4>
              </div>
              <div class="timeline-body">
                <div class="row">
                  <div class="col-sm-12 col-md-8">
                    <div class="numbers">
                      <h2>{{$periksa_tapak}}</h2>
                    </div>
                  </div>
                  <div class="col-sm-12 col-md-4 col-stats">              
                    <div class="d-grid gap-2 d-md-flex justify-content-md-end">
                      <a href="{{route('ik.pemeriksaan')}}" class="btn btn-primary btn-round">Papar</a>
                    </div>
                  </div>
                </div>
              </div>
            </div>
          </li>
          <li>
            <div class="timeline-badge danger">
              <i class="icon-close"></i>
            </div>
            <div class="timeline-panel">
              <div class="timeline-heading">
                <h4 class="timeline-title">Ulasan Pegawai</h4>
              </div>
              <div class="timeline-body">
                <div class="row">
                  <div class="col-sm-12 col-md-8">
                    <div class="numbers">
                      <h2>{{$pegawai_belum_ulas}}</h2>
                    </div>
                  </div>
                  <div class="col-sm-12 col-md-4 col-stats">              
                    <div class="d-grid gap-2 d-md-flex justify-content-md-end">
                      <a href="{{route('pegawai.cadangan')}}" class="btn btn-primary btn-round">Papar</a>
                    </div>
                  </div>
                </div>
              </div>
            </div>
          </li>
          <li class="timeline-inverted">
            <div class="timeline-badge danger">
              <i class="icon-close"></i>
            </div>
            <div class="timeline-panel">
              <div class="timeline-heading">
                <h4 class="timeline-title">Ulasan Pengarah</h4>
              </div>
              <div class="timeline-body">
                <div class="row">
                  <div class="col-sm-12 col-md-8">
                    <div class="numbers">
                      <h2>{{$pengarah_belum_ulas}}</h2>
                    </div>
                  </div>
                  <div class="col-sm-12 col-md-4 col-stats">              
                    <div class="d-grid gap-2 d-md-flex justify-content-md-end">
                      <a href="{{route('pegawai.ulasan-cadangan')}}" class="btn btn-primary btn-round">Papar</a>
                    </div>
                  </div>
                </div>
              </div>
            </div>
          </li>
          <li>
            <div class="timeline-badge info">
              <i class="icon-tag"></i>
            </div>
            <div class="timeline-panel">
              <div class="timeline-heading">
                <h4 class="timeline-title">Bawa Ke Mesyuarat</h4>
              </div>
              <div class="timeline-body">
                <div class="row">
                  <div class="col-sm-12 col-md-8">
                    <div class="numbers">
                      <h2>{{$bawa_mesyuarat}}</h2>
                    </div>
                  </div>
                  <div class="col-sm-12 col-md-4 col-stats">              
                    <div class="d-grid gap-2 d-md-flex justify-content-md-end">
                      <a href="{{route('pt.bawamesyuarat')}}" class="btn btn-primary btn-round">Papar</a>
                    </div>
                  </div>
                </div>
              </div>
            </div>
          </li>
          <li class="timeline-inverted">
            <div class="timeline-badge info">
              <i class="icon-tag"></i>
            </div>
            <div class="timeline-panel">
              <div class="timeline-heading">
                <h4 class="timeline-title">Keputusan Mesyuarat</h4>
              </div>
              <div class="timeline-body">
                <div class="row">
                  <div class="col-sm-12 col-md-8">
                    <div class="numbers">
                      <h2>{{$keputusan_mesyuarat}}</h2>
                    </div>
                  </div>
                  <div class="col-sm-12 col-md-4 col-stats">              
                    <div class="d-grid gap-2 d-md-flex justify-content-md-end">
                      <a href="{{route('pt.keputusanmesyuarat')}}" class="btn btn-primary btn-round">Papar</a>
                    </div>
                  </div>
                </div>
              </div>
            </div>
          </li>
          <li>
            <div class="timeline-badge success">
              <i class="icon-credit-card"></i>
            </div>
            <div class="timeline-panel">
              <div class="timeline-heading">
                <h4 class="timeline-title">Pengeluaran Lesen</h4>
              </div>
              <div class="timeline-body">
                <div class="row">
                  <div class="col-sm-12 col-md-8">
                    <div class="numbers">
                      <h2>{{$keluar_lesen}}</h2>
                    </div>
                  </div>
                  <div class="col-sm-12 col-md-4 col-stats">              
                    <div class="d-grid gap-2 d-md-flex justify-content-md-end">
                      <a href="{{route('pt.keluarlesen')}}" class="btn btn-primary btn-round">Papar</a>
                    </div>
                  </div>
                </div>
              </div>
            </div>
          </li>
          <li class="timeline-inverted">
            <div class="timeline-badge info">
              <i class="icon-tag"></i>
            </div>
            <div class="timeline-panel">
              <div class="timeline-heading">
                <h4 class="timeline-title">Selesai</h4>
              </div>
              <div class="timeline-body">
                <div class="row">
                  <div class="col-sm-12 col-md-8">
                    <div class="numbers">
                      <h2>{{$selesai}}</h2>
                    </div>
                  </div>
                  <div class="col-sm-12 col-md-4 col-stats">              
                    <div class="d-grid gap-2 d-md-flex justify-content-md-end">
                      <a href="{{route('pt.selesai')}}" class="btn btn-primary btn-round">Papar</a>
                    </div>
                  </div>
                </div>
              </div>
            </div>
          </li>
        </ul>
      </div>
    </div>
@endsection