@extends('layouts.app')

@section('content')
<div class="container">
    <div class="row justify-content-center">
        <div class="col-md-12">
            <div class="card">
                <nav aria-label="breadcrumb">
                    <ol class="breadcrumb pb-3">
                      <li class="breadcrumb-item"><a href="{{ route('home') }}">Home</a></li>
                      <li class="breadcrumb-item active" aria-current="page">Laporan</li>
                    </ol>
                  </nav>

                @php
                    $auth_user = Auth::user();
                    $cawangan = Http::withOptions(['verify' => config('app.api_verify')])->get(config('api.url') . '/api/cawangan/'. $auth_user['cawangan'])->json();
                    $version = $cawangan['version'];
                @endphp

                <div class="card-body text-center">

                    <div class="row form-group justify-content-center">
                        <div class="col-3 mx-1" >
                            <div class="row">
                                @if($version == 'v1')
                                    <a href="{{ route('laporan.gadaian') }}" class="btn btn-dark btn-lg btn-block mb-3">Gadaian</a>
                                @else
                                    <a href="{{ route('laporan.gadaianujrah') }}" class="btn btn-dark btn-lg btn-block mb-3">Gadaian</a>
                                @endif
                            </div>
                            <div class="row d-none">
                                {{-- <a href="{{ route('laporan.lelongan') }}" class="btn btn-dark btn-lg btn-block mb-3">Lelongan</a> --}}
                                <a href="#" class="btn btn-danger btn-lg btn-block mb-3">Lelongan</a>
                            </div>
                            <div class="row">
                                <a href="{{ route('laporan.pelangganbaru') }}" class="btn btn-dark btn-lg btn-block  mb-3">Pelanggan Baru</a>
                            </div>
                            <div class="row">
                                <a href="{{ route('laporan.ringkasanterkumpul') }}" class="btn btn-dark btn-lg btn-block mb-3">Ringkasan Terkumpul</a>
                            </div>
                            <div class="row">
                                <a href="{{route('laporan.agingbulanan')}}" class="btn btn-dark btn-lg btn-block mb-3">Aging Bulan</a>
                            </div>
                            <div class="row">
                                <a href="{{ route('laporan.pendserahan') }}" class="btn btn-dark btn-lg btn-block mb-3">Laporan HQ</a>
                            </div>
                            <div class="row">
                                <a href="{{route('laporan.tuntutbaki')}}" class="btn btn-dark btn-lg btn-block mb-3">Tuntut Baki</a>
                            </div>
                             <div class="row">
                                <a href="{{ route('laporan.hargaemas') }}" class="btn btn-dark btn-lg btn-block mb-3">Harga Emas</a>
                            </div>
                            <div class="row">
                                <a href="{{route('laporan.wakil')}}" class="btn btn-dark btn-lg btn-block mb-3">Senarai Wakil</a>
                            </div>
                            <div class="row">
                                <a href="{{route('laporan.stokauditbackdate')}}" class="btn btn-dark btn-lg btn-block mb-3">Stok Audit Backdate</a>
                            </div>
                            <div class="row">
                                <a href="{{ route('laporan.serahmarhungadai') }}" class="btn btn-dark btn-lg btn-block mb-3">Serah Marhun Gadai</a>
                            </div>
                        </div>
                        <div class="col-3 mx-1">
                            <div class="row">
                                @if($version == 'v1')
                                    <a href="{{ route('laporan.tebus') }}" class="btn btn-dark btn-lg btn-block mb-3">Penebusan</a>
                                @else
                                    <a href="{{ route('laporan.tebusujrah') }}" class="btn btn-dark btn-lg btn-block mb-3">Penebusan</a>
                                @endif
                            </div>
                            <div class="row">
                                <a href="{{ route('laporan.kawalanstok') }}" class="btn btn-dark btn-lg btn-block mb-3">Kawalan Stok Produk</a>
                            </div>
                            <div class="row">
                                <a href="{{ route('laporan.batalsuratgadai') }}" class="btn btn-dark btn-lg btn-block mb-3">Batal Surat Gadai</a>
                            </div>
                            <div class="row">
                                <a href="{{ route('laporan.marhunharian') }}" class="btn btn-dark btn-lg btn-block mb-3">Marhun Harian</a>
                            </div>
                            <div class="row">
                                <a href="{{ route('laporan.senaraipetibesi') }}" class="btn btn-dark btn-lg btn-block mb-3">Senarai Peti Besi</a>
                            </div>
                            <div class="row">
                                <a href="{{ route('laporan.datalejer_am') }}" class="btn btn-dark btn-lg btn-block mb-3">Lejer Am</a>
                            </div>
                            <div class="row">
                                <a href="{{ route('laporan.denominasi') }}" class="btn btn-dark btn-lg btn-block mb-3">Denominasi</a>
                            </div>
                            {{-- <div class="row">
                                <a href="{{ route('laporan.hapushq') }}" class="btn btn-dark btn-lg btn-block mb-3">Hapus S/P HQ</a>
                            </div> --}}
                            <div class="row">
                                <a href="{{ route('laporan.saghilang') }}" class="btn btn-dark btn-lg btn-block mb-3">SAG Hilang</a>
                            </div>
                            <div class="row">
                                <a href="{{ route('laporan.serahmarhuntebus') }}" class="btn btn-dark btn-lg btn-block mb-3">Serah Marhun Tebus</a>
                            </div>
                            <div class="row">
                                <a href="{{ route('laporan.stokauditkhas') }}" class="btn btn-dark btn-lg btn-block mb-3">SA(Whatsapp & SMS)</a>
                            </div>
                        </div>
                        <div class="col-3 mx-1">
                            <div class="row">
                                <a href="{{ route('laporan.ansuran') }}" class="btn btn-dark btn-lg btn-block mb-3">Ansuran</a>
                            </div>
                            <div class="row">
                                <a href="{{ route('laporan.stokaudit') }}" class="btn btn-dark btn-lg btn-block mb-3">Stok Audit</a>
                            </div>
                            <div class="row">
                                <a href="{{ route('laporan.ringkasanharian') }}" class="btn btn-dark btn-lg btn-block mb-3">Ringkasan Harian</a>
                            </div>
                            <div class="row">
                                <a href="{{ route('laporan.marhunterkumpul') }}" class="btn btn-dark btn-lg btn-block mb-3">Marhun Terkumpul</a>
                            </div>
                            <div class="row">
                                <a href="{{ route('laporan.audittrail') }}" class="btn btn-dark btn-lg btn-block mb-3">Audit Trail</a>
                            </div>
                            <div class="row">
                               <a href="{{route('laporan.imbangduga')}}" class="btn btn-dark btn-lg btn-block mb-3">Imbang Duga</a>
                            </div>
                            <div class="row">
                                <a href="{{route('laporan.petibesi')}}" class="btn btn-dark btn-lg btn-block mb-3">Peti Besi</a>
                            </div>
                            <div class="row">
                                <a href="{{ route('laporan.perbelanjaan') }}" class="btn btn-dark btn-lg btn-block mb-3">Perbelanjaan</a>
                            </div>
                            {{-- <div class="row">
                                <a href="{{ route('laporan.auditcustomer') }}" class="btn btn-dark btn-lg btn-block mb-3">Audit Customer</a>
                            </div> --}}
                            <div class="row">
                                <a href="{{ route('laporan.imbangdugaakru') }}" class="btn btn-dark btn-lg btn-block mb-3">Imbang Duga Akru</a>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>

@endsection
