@extends('layouts.admin')

@section('title', 'Beranda')

@section('content')
    <section class="row gy-2">
        <div class="col-12">
            <div class="row gx-2">
                <div class="col-6 col-lg-3 col-md-6">
                    <div class="card mb-0">
                        <div class="card-body px-3 py-4">

                            <div class="stat-header">
                                <h6 class="stat-label">Pendapatan Bulan Ini</h6>
                                <i class="bi bi-info-circle menu-dots" data-bs-toggle="tooltip" data-bs-placement="top"
                                    title="Total pendapatan dari pesanan buket dan foto dalam bulan ini"></i>
                            </div>

                            <div class="stat-body">
                                <div class="stat-icon">
                                    <i class="bi bi-bank"></i>
                                </div>
                                <div>
                                    <h6 class="stat-count">Rp 1.000.000</h6>
                                    <span class="stat-percent text-success fw-bold">
                                        <i class="bi bi-arrow-up"></i> 34.7%
                                    </span>

                                    <small class="stat-month">dari bulan lalu</small>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>

                <div class="col-6 col-lg-3 col-md-6">
                    <div class="card mb-0">
                        <div class="card-body px-3 py-4">

                            <div class="stat-header">
                                <h6 class="stat-label">Total Pesanan Masuk</h6>
                                <i class="bi bi-info-circle menu-dots" data-bs-toggle="tooltip" data-bs-placement="top"
                                    title="Total pesanan buket dan foto yang masuk dalam bulan ini"></i>
                            </div>

                            <div class="stat-body">
                                <div class="stat-icon">
                                    <i class="bi bi-cart-fill"></i>
                                </div>
                                <div>
                                    <h6 class="stat-count">20 Pesanan</h6>
                                    <span class="stat-percent text-success fw-bold">
                                        <i class="bi bi-arrow-up"></i> 34.7%
                                    </span>

                                    <small class="stat-month">dari bulan lalu</small>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>

                <div class="col-6 col-lg-3 col-md-6">
                    <div class="card mb-0">
                        <div class="card-body px-3 py-4">

                            <div class="stat-header">
                                <h6 class="stat-label">Pesanan Selesai</h6>
                                <i class="bi bi-info-circle menu-dots" data-bs-toggle="tooltip" data-bs-placement="top"
                                    title="Total pesanan buket dan foto yang selesai dalam bulan ini"></i>
                            </div>

                            <div class="stat-body">
                                <div class="stat-icon">
                                    <i class="bi bi-cart-check-fill"></i>
                                </div>
                                <div>
                                    <h6 class="stat-count">20 Pesanan</h6>
                                    <span class="stat-percent text-success fw-bold">
                                        <i class="bi bi-arrow-up"></i> 34.7%
                                    </span>

                                    <small class="stat-month">dari bulan lalu</small>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>

                <div class="col-6 col-lg-3 col-md-6">
                    <div class="card mb-0">
                        <div class="card-body px-3 py-4">

                            <div class="stat-header">
                                <h6 class="stat-label">Pesanan Dibatalkan</h6>
                                <i class="bi bi-info-circle menu-dots" data-bs-toggle="tooltip" data-bs-placement="top"
                                    title="Total pesanan buket dan foto yang dibatalkan dalam bulan ini"></i>
                            </div>

                            <div class="stat-body">
                                <div class="stat-icon">
                                    <i class="bi bi-cart-x-fill"></i>
                                </div>
                                <div>
                                    <h6 class="stat-count">20 Pesanan</h6>
                                    <span class="stat-percent text-success fw-bold">
                                        <i class="bi bi-arrow-up"></i> 34.7%
                                    </span>

                                    <small class="stat-month">dari bulan lalu</small>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>

            </div>
        </div>
        <div class="col-12">
            <div class="row gx-2">
                <div class="col-12 col-xl-6">
                    <div class="card mb-0">
                        <div class="card-header">
                            <h4>Bunga Diambil Hari Ini</h4>
                        </div>
                        <div class="card-body">
                            <div class="table-responsive">
                                <table class="table table-hover table-lg">
                                    <thead>
                                        <tr>
                                            <th>Waktu</th>
                                            <th>Nama Pelanggan</th>
                                            <th>Nama Buket</th>
                                            <th>Aksi</th>
                                        </tr>
                                    </thead>
                                    <tbody>
                                        <tr>
                                            <td>Si Ganteng</td>
                                            <td>Komentar dia...</td>
                                            <td>cb</td>
                                            <td class="col-auto">
                                                <a href="#" class="btn icon btn-primary btn-action"
                                                    data-bs-toggle="modal" data-bs-target="#buketToday">
                                                    <i class="bi bi-eye"></i>
                                                </a>
                                            </td>
                                        </tr>
                                    </tbody>
                                </table>
                            </div>
                        </div>
                    </div>
                </div>

                <div class="col-12 col-xl-6">
                    <div class="card mb-0">
                        <div class="card-header">
                            <h4>Jadwal Foto Hari Ini</h4>
                        </div>
                        <div class="card-body">
                            <div class="table-responsive">
                                <table class="table table-hover table-lg">
                                    <thead>
                                        <tr>
                                            <th>Waktu</th>
                                            <th>Nama Pelanggan</th>
                                            <th>Nama Paket</th>
                                            <th>Aksi</th>
                                        </tr>
                                    </thead>
                                    <tbody>
                                        <tr>
                                            <td>Si Keren</td>
                                            <td>Komentar dia...</td>
                                            <td>cb</td>
                                            <td class="col-auto">
                                                <a href="#" class="btn icon btn-primary btn-action"
                                                    data-bs-toggle="modal" data-bs-target="#fotoToday">
                                                    <i class="bi bi-eye"></i>
                                                </a>
                                            </td>
                                        </tr>
                                    </tbody>
                                </table>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>

        <div class="col-12 col-xl-12">
            <div class="card mb-0">
                <div class="card-header">
                    <h4>Pesanan Pending</h4>
                </div>
                <div class="card-body">

                    <div class="nav nav-pills nav-fill mb-4" id="v-pills-tab" role="tablist" aria-orientation="horizontal">
                        <a class="nav-link active" id="v-pills-home-tab" data-bs-toggle="pill" href="#v-pills-home"
                            role="tab" aria-controls="v-pills-home" aria-selected="true">
                            Buket
                        </a>
                        <a class="nav-link" id="v-pills-profile-tab" data-bs-toggle="pill" href="#v-pills-profile"
                            role="tab" aria-controls="v-pills-profile" aria-selected="false">
                            Foto
                        </a>
                    </div>

                    <div class="tab-content" id="v-pills-tabContent">

                        <div class="tab-pane fade show active" id="v-pills-home" role="tabpanel"
                            aria-labelledby="v-pills-home-tab">
                            <div class="table-responsive">
                                <table class="table table-hover table-lg">
                                    <thead>
                                        <tr>
                                            <th>No.</th>
                                            <th>Nama Pelanggan</th>
                                            <th>Nama Buket</th>
                                            <th>Tanggal Ambil</th>
                                            <th>Total</th>
                                            <th>Status</th>
                                            <th>Aksi</th>
                                        </tr>
                                    </thead>
                                    <tbody>
                                        <tr>
                                            <td class="col-auto">
                                                <p class="mb-0">1</p>
                                            </td>
                                            <td class="col-auto">
                                                <p class="mb-0">Congratulations</p>
                                            </td>
                                            <td class="col-auto">
                                                <p class="mb-0">Congratulations</p>
                                            </td>
                                            <td class="col-auto">
                                                <p class="mb-0">Congratulations</p>
                                            </td>
                                            <td class="col-auto">
                                                <p class="mb-0">Congratulations</p>
                                            </td>
                                            <td>
                                                <span class="badge bg-success-subtle rounded-pill px-3 py-2">Selesai</span>
                                            </td>
                                            <td class="col-auto">
                                                <a href="#"
                                                    class="btn icon btn-primary btn-action"data-bs-toggle="modal"
                                                    data-bs-target="#riwayatBuket">
                                                    <i class="bi bi-eye"></i>
                                                </a>
                                            </td>
                                        </tr>
                                    </tbody>
                                </table>
                            </div>
                        </div>

                        <div class="tab-pane fade" id="v-pills-profile" role="tabpanel"
                            aria-labelledby="v-pills-profile-tab">
                            <div class="table-responsive">
                                <table class="table table-hover table-lg">
                                    <thead>
                                        <tr>
                                            <th>No.</th>
                                            <th>Nama Pelanggan</th>
                                            <th>Nama Paket</th>
                                            <th>Tanggal Booking</th>
                                            <th>Total</th>
                                            <th>Status</th>
                                            <th>Aksi</th>
                                        </tr>
                                    </thead>
                                    <tbody>
                                        <tr>
                                            <td class="col-auto">
                                                <p class="mb-0">1</p>
                                            </td>
                                            <td class="col-auto">
                                                <p class="mb-0">Congratulations</p>
                                            </td>
                                            <td class="col-auto">
                                                <p class="mb-0">Congratulations</p>
                                            </td>
                                            <td class="col-auto">
                                                <p class="mb-0">Congratulations</p>
                                            </td>
                                            <td class="col-auto">
                                                <p class="mb-0">Congratulations</p>
                                            </td>
                                            <td>
                                                <span class="badge bg-success-subtle rounded-pill px-3 py-2">Selesai</span>
                                            </td>
                                            <td class="col-auto">
                                                <a href="#"
                                                    class="btn icon btn-primary btn-action"data-bs-toggle="modal"
                                                    data-bs-target="#riwayatFoto">
                                                    <i class="bi bi-eye"></i>
                                                </a>
                                            </td>
                                        </tr>
                                    </tbody>
                                </table>
                            </div>
                        </div>

                    </div>
                </div>
            </div>
        </div>
    </section>
    @include('admin.beranda.partials.modal-buket')
    @include('admin.beranda.partials.modal-foto')
    @include('admin.beranda.partials.modal-riwayat')
@endsection
