<?php if (isset($component)) { $__componentOriginal9ac128a9029c0e4701924bd2d73d7f54 = $component; } ?>
<?php $component = App\View\Components\AppLayout::resolve([] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?>
<?php $component->withName('app-layout'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag && $constructor = (new ReflectionClass(App\View\Components\AppLayout::class))->getConstructor()): ?>
<?php $attributes = $attributes->except(collect($constructor->getParameters())->map->getName()->all()); ?>
<?php endif; ?>
<?php $component->withAttributes([]); ?>
    <div class="app-main flex-column flex-row-fluid" >
        <div class="app-container">
            <div class="flex justify-between items-center">
                <div class="page-title d-flex flex-column justify-content-center flex-wrap me-3">
                    <h1 class="page-heading d-flex text-dark fw-bold fs-3 flex-column justify-content-center my-0">Dashboard</h1>
                    <?php echo e(Breadcrumbs::render('dashboard')); ?>

                </div>
            </div>
            <div class="py-12">
                <!--begin::Content-->
                <div class="app-content flex-column-fluid">
                    <!--begin::Content container-->
                    <div class="app-container container-xxl">
                        <!--begin::Row-->
                        <div class="row g-5 g-xl-10 mb-5 mb-xl-10">
                            <!--begin::Col-->
                            <div class="col-xxl-8">
                                <!--begin::Row-->
                                <div class="row g-5 g-xl-10">
                                    <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('invoice-view')): ?>
                                    <div class="col-md-4">
                                        <!--begin::Card widget 11-->
                                        <div class="card card-flush h-xl-100" style="background-color: #F6E5CA">
                                            <!--begin::Header-->
                                            <div class="card-header flex-nowrap pt-5">
                                                <!--begin::Title-->
                                                <h3 class="card-title align-items-start flex-column">
                                                    <span class="card-label fw-bold fs-2 text-gray-800">Invoice</span>
                                                    <span class="mt-1 fw-semibold fs-7" style="color:">Total Color Invoice (<?php echo e($invoiceCount); ?>)</span>
                                                    <span class="mt-1 fw-semibold fs-7" style="color:">Total Gerai Invoice (<?php echo e($GeraiInvoiceCount); ?>)</span>
                                                </h3>
                                                <!--end::Title-->
                                                <!--begin::Toolbar-->

                                            </div>
                                            <!--end::Header-->
                                            <!--begin::Body-->
                                            <div class="card-body text-center pt-5">
                                                <!--begin::Image-->
                                                <img src="assets/media/svg/illustrations/2.svg" class="h-125px mb-5" alt="">
                                                <!--end::Image-->
                                                
                                                <!--begin::Color Section-->
                                                <div class="text-start mb-4">
                                                    <span class="d-block fw-bold fs-4 text-gray-900 mb-1">Color Invoice:</span>
                                                    <span class="d-block fw-semibold fs-6">Submitted: (<?php echo e($countInvoiceSubmit); ?>)</span>
                                                    <span class="d-block fw-semibold fs-6">Draft: (<?php echo e($countInvoiceDraft); ?>)</span>
                                                </div>
                                                
                                                <!--begin::Separator-->
                                                <div class="separator separator-dashed my-3"></div>
                                                <!--end::Separator-->
                                                
                                                <!--begin::Gerai Section-->
                                                <div class="text-start">
                                                    <span class="d-block fw-bold fs-4 text-gray-900 mb-1">Gerai Invoice:</span>
                                                    <span class="d-block fw-semibold fs-6">Submitted: (<?php echo e($countGeraiInvoiceSubmit); ?>)</span>
                                                    <span class="d-block fw-semibold fs-6">Draft: (<?php echo e($countGeraiInvoiceDraft); ?>)</span>
                                                </div>
                                            </div>
                                        </div>
                                        <!--end::Card widget 11-->
                                    </div>
                                    <?php endif; ?>

                                    <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('daily-view')): ?>
                                    <div class="col-md-4">
                                        <div class="card card-flush h-xl-100" style="background-color: #F3D6EF">
                                            <div class="card-header flex-nowrap pt-5">
                                                <h3 class="card-title align-items-start flex-column">
                                                    <span class="card-label fw-bold fs-2 text-gray-800">Daily Distribution</span>
                                                    <span class="mt-1 fw-semibold fs-7" style="color:">Total Daily Distribution (<?php echo e($dailyCount); ?>)</span>
                                                </h3>
                                            </div>
                                            <div class="card-body text-center pt-5">
                                                <img src="assets/media/svg/illustrations/5.svg" class="h-125px mb-5" alt="">
                                                <div class="text-start">
                                                    <span class="d-block fw-bold fs-4 text-gray-800">Submitted (<?php echo e($countDailySubmit); ?>)</span>
                                                    <span class="mt-1 fw-semibold fs-5" style="color:">Draft (<?php echo e($countDailyDraft); ?>)</span>
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                    <?php endif; ?>

                                    <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('user-view')): ?>
                                    <div class="col-md-4">
                                        <!--begin::Card widget 11-->
                                        <div class="card card-flush h-xl-100" style="background-color: #BFDDE3">
                                            <!--begin::Header-->
                                            <div class="card-header flex-nowrap pt-5">
                                                <!--begin::Title-->
                                                <h3 class="card-title align-items-start flex-column">
                                                    <span class="card-label fw-bold fs-2 text-gray-800">Users</span>
                                                    <span class="mt-1 fw-semibold fs-7" style="color:">Total User: (<?php echo e($userCount); ?>)</span>
                                                </h3>
                                                <!--end::Title-->
                                                <!--begin::Toolbar-->
                                                <div class="card-toolbar">
                                                    <!--begin::Menu-->
                                                    <button class="btn btn-icon justify-content-end" data-kt-menu-trigger="click" data-kt-menu-placement="bottom-end" data-kt-menu-overflow="true" style="color:">
                                                        <i class="ki-duotone ki-dots-square fs-1">
                                                            <span class="path1"></span>
                                                            <span class="path2"></span>
                                                            <span class="path3"></span>
                                                            <span class="path4"></span>
                                                        </i>
                                                    </button>
                                                    <!--begin::Menu 2-->
                                                    <div class="menu menu-sub menu-sub-dropdown menu-column menu-rounded menu-gray-800 menu-state-bg-light-primary fw-semibold w-200px" data-kt-menu="true">
                                                        <!--begin::Menu item-->
                                                        <div class="menu-item px-3">
                                                            <div class="menu-content fs-6 text-dark fw-bold px-3 py-4">Quick Actions</div>
                                                        </div>
                                                        <!--end::Menu item-->
                                                        <!--begin::Menu separator-->
                                                        <div class="separator mb-3 opacity-75"></div>
                                                        <!--end::Menu separator-->
                                                        <!--begin::Menu item-->
                                                        <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('user-view')): ?>
                                                        <div class="menu-item px-3">
                                                            <a href="<?php echo e(route('admin.users.index')); ?>" class="menu-link px-3">User List</a>
                                                        </div>
                                                        <?php endif; ?>
                                                        <!--end::Menu item-->
                                                        <!--begin::Menu separator-->
                                                        <div class="separator mt-3 opacity-75"></div>
                                                        <!--end::Menu separator-->
                                                        <!--begin::Menu item-->
                                                        <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('user-add')): ?>
                                                        <div class="menu-item px-3">
                                                            <div class="menu-content px-3 py-3">
                                                                <a class="btn btn-primary btn-sm px-4" href="<?php echo e(route('admin.users.create')); ?>">Add User</a>
                                                            </div>
                                                        </div>
                                                        <?php endif; ?>
                                                        <!--end::Menu item-->
                                                    </div>
                                                    <!--end::Menu 2-->
                                                    <!--end::Menu-->
                                                </div>
                                                <!--end::Toolbar-->
                                            </div>
                                            <!--end::Header-->
                                            <!--begin::Body-->
                                            <div class="card-body text-center pt-5">
                                                <!--begin::Image-->
                                                <img src="assets/media/svg/illustrations/6.svg" class="h-125px mb-5" alt="">
                                                <!--end::Image-->
                                            </div>
                                            <!--end::Body-->
                                        </div>
                                        <!--end::Card widget 11-->
                                    </div>
                                    <?php endif; ?>
                                    <!--end::Col-->
                                </div>
                                <!--end::Row-->
                            </div>
                            <!--end::Col-->
                            <!--begin::Col-->
                            <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->any(['invoice-add','daily-add','user-add'])): ?>
                            <div class="col-xxl-4">
                                <!--begin::Forms widget 1-->
                                <div class="card h-xl-100">
                                    <!--begin::Header-->
                                    <div class="card-header position-relative min-h-50px p-0 border-bottom-2 flex justify-content-center">
                                        <!--begin::Nav-->
                                        <h3 class="card-title text-center">
                                            <span class="card-label fw-bold fs-4 text-gray-800">Quick Actions</span>
                                        </h3>
                                        <!--end::Nav-->
                                    </div>
                                    <!--end::Header-->
                                    <!--begin::Body-->
                                    <div class="card-body">
                                        <!--begin::Tab Content-->
                                        <div class="tab-content">
                                            <!--begin::Tap pane-->
                                            <div class="tab-pane fade active show" id="kt_forms_widget_1_tab_content_1" role="tabpanel" aria-labelledby="kt_forms_widget_1_tab_1">
                                                <!--begin::Input group-->
                                                <!--end::Input group-->
                                                <!--begin::Row-->
                                                <!--begin::Col-->
                                                <div class="col mb-7">
                                                    <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('invoice-add')): ?>
                                                    <div class="form-floating">
                                                        <div class="d-flex align-items-end">
                                                            <a href="<?php echo e(route('admin.invoice.create')); ?>" class="btn fs-3 w-100" style="background-color: #F6E5CA">Create Color Invoice</a>
                                                        </div>
                                                    </div>
                                                    <?php endif; ?>
                                                </div>
                                                <div class="col mb-7">
                                                    <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('invoice-add')): ?>
                                                    <div class="form-floating">
                                                        <div class="d-flex align-items-end">
                                                            <a href="<?php echo e(route('admin.gerai.create')); ?>" class="btn fs-3 w-100" style="background-color: #F6E5CA">Create Gerai Invoice</a>
                                                        </div>
                                                    </div>
                                                    <?php endif; ?>
                                                </div>
                                                <div class="col mb-7">
                                                    <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('daily-add')): ?>
                                                    <div class="form-floating">
                                                        <div class="d-flex align-items-end">
                                                            <a href="<?php echo e(route('admin.daily.create')); ?>" class="btn fs-3 w-100" style="background-color: #F3D6EF">Create Daily Distribution</a>
                                                        </div>
                                                    </div>
                                                    <?php endif; ?>
                                                </div>
                                                <div class="col mb-7">
                                                    <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('user-add')): ?>
                                                    <div class="form-floating">
                                                        <div class="d-flex align-items-end">
                                                            <a href="<?php echo e(route('admin.users.create')); ?>" class="btn fs-3 w-100" style="background-color: #BFDDE3">Create User</a>
                                                        </div>
                                                    </div>
                                                    <?php endif; ?>
                                                </div>
                                                <!--end::Col-->
                                                <!--end::Row-->
                                            </div>
                                            <!--end::Tap pane-->
                                            <!--begin::Tap pane-->

                                            <!--end::Tap pane-->
                                        </div>
                                        <!--end::Tab Content-->
                                    </div>
                                    <!--end: Card Body-->
                                </div>
                                <!--end::Forms widget 1-->
                            </div>
                            <?php endif; ?>
                            <!--end::Col-->
                        </div>
                        <!--end::Row-->
                    </div>
                    <!--end::Content container-->
                </div>
                <!--end::Content-->
            </div>
        </div>
    </div>

 <?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__componentOriginal9ac128a9029c0e4701924bd2d73d7f54)): ?>
<?php $component = $__componentOriginal9ac128a9029c0e4701924bd2d73d7f54; ?>
<?php unset($__componentOriginal9ac128a9029c0e4701924bd2d73d7f54); ?>
<?php endif; ?>



<?php /**PATH C:\xampp\htdocs\local.kpb\resources\views/dashboard.blade.php ENDPATH**/ ?>