@extends('layouts.master')

@section('content')
    <div class="content-body">
        <!-- row -->
        <div class="container-fluid">
            <div class="d-flex align-items-center mb-4 flex-wrap">
                {{-- <h3 class="me-auto">RSUI Kustati </h3> --}}
                <h3 class="me-auto">{{ $parameter->namalokasi ?? '' }} </h3>
                {{-- <div>
                    <a href="new-job.html" class="btn btn-primary me-3"><i class="fas fa-plus me-2"></i>Add New Job</a>
                    <a href="javascript:void(0);" class="icon-btn me-3"> <i class="fas fa-envelope"></i></a>
                    <a href="javascript:void(0);" class="icon-btn me-3"><i class="fas fa-phone-alt"></i></a>
                    <a href="javascript:void(0);" class="icon-btn"><i class="fas fa-info"></i></a>
                </div> --}}
            </div>
            <div class="row">
                <div class="col-xl-6">
                    <div class="row">
                        <div class="col-xl-12">
                            <div class="card">
                                <div class="card-body">
                                    <div class="row separate-row">
                                        <div class="col-sm-6">
                                            <div class="job-icon pb-4 d-flex justify-content-between">
                                                <div>
                                                    <div class="d-flex align-items-center mb-1">
                                                        <h2 class="mb-0 lh-1">{{ $VeriTrans  ?? '' }}</h2>
                                                        {{-- <span class="ms-3 badge badge-success light">+0.5%</span> --}}
                                                    </div>	
                                                    <span class="badge badge-secondary">Verified Transaction</span>
                                                </div>	
                                                <div id="NewCustomers"></div>
                                            </div>
                                        </div>
                                        <div class="col-sm-6">
                                            <div class="job-icon pb-4 pt-4 pt-sm-0 d-flex justify-content-between">
                                                <div>
                                                    <div class="d-flex align-items-center mb-1">
                                                        <h2 class="mb-0 lh-1">{{ $incidenTrans  ?? '' }}</h2>
                                                    </div>	
                                                    <span class="badge light badge-danger">Incident Today</span>
                                                </div>	
                                                <div id="NewCustomers1"></div>
                                            </div>
                                        </div>
                                        {{-- <div class="col-sm-3">
                                        </div> --}}
                                        <div class="col-sm-6">
                                            <div class="job-icon pt-4 pb-sm-0 pb-4 d-flex justify-content-between">
                                                <div>
                                                    <div class="d-flex align-items-center mb-1">
                                                        <h2 class="mb-0 lh-1">{{ $pendingTrans  ?? '' }}</h2>
                                                        <span class="ms-3 badge badge-danger light">-2.0%</span>
                                                    </div>	
                                                    <span class="badge light badge-warning">Pending Transaction</span>
                                                </div>	
                                                <div id="NewCustomers2"></div>
                                            </div>
                                        </div>
                                        {{-- <div class="col-sm-3">
                                        </div> --}}
                                        <div class="col-sm-6">
                                            <div class="job-icon pt-4  d-flex justify-content-between">
                                                <div>
                                                    <div class="d-flex align-items-center mb-1">
                                                        <h2 class="mb-0 lh-1">{{ $inSite  ?? '' }}</h2>
                                                    </div>	
                                                    <span class="badge light badge-warning">Kendaraan belum keluar</span>
                                                </div>	
                                                <div id="NewCustomers3"></div>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                        {{-- <div class="col-xl-12">
                            <div class="card "  id="user-activity">
                                <div class="card-header border-0 pb-0 flex-wrap">
                                    <h4 class="card-title mb-0">Vacancy Stats</h4>
                                    <div class="mt-3 mt-sm-0">
                                        <ul class="nav nav-tabs vacany-tabs style-1" role="tablist">
                                            <li class="nav-item">
                                                <a class="nav-link " data-bs-toggle="tab" data-series="Daily" href="#Daily" role="tab">Daily</a>
                                            </li>
                                            <li class="nav-item">
                                                <a class="nav-link " data-bs-toggle="tab" data-series="Weekly" href="#Weekly" role="tab" >Weekly</a>
                                            </li>
                                            <li class="nav-item">
                                                <a class="nav-link active" data-bs-toggle="tab" data-series="Monthly" href="#Monthly" role="tab" >Monthly</a>
                                            </li>
                                        </ul>
                                    </div>
                                </div>
                                <div class="card-body pt-3 px-sm-3 px-0 pb-1">
                                    <div class="pb-sm-4 mb-3 d-flex flex-wrap px-3">
                                        <div class="d-flex align-items-center">
                                            <svg class="me-2" xmlns="http://www.w3.org/2000/svg" width="13" height="13" viewBox="0 0 13 13">
                                            <rect  width="13" height="13" rx="6.5" fill="#35c556"/>
                                            </svg>
                                            <span class="text-dark fs-13 font-w500">Application Sent</span>	
                                        </div>
                                        <div class="application d-flex align-items-center">
                                            <svg class="me-1" xmlns="http://www.w3.org/2000/svg" width="13" height="13" viewBox="0 0 13 13">
                                            <rect  width="13" height="13" rx="6.5" fill="#3f4cfe"/>
                                            </svg>
                                            <span class="text-dark fs-13 font-w500">Interviews</span>
                                        </div>
                                        <div class="application d-flex align-items-center">
                                            <svg class="me-1" xmlns="http://www.w3.org/2000/svg" width="13" height="13" viewBox="0 0 13 13">
                                            <rect  width="13" height="13" rx="6.5" fill="#f34040"/>
                                            </svg>
                                            <span class="text-dark fs-13 font-w500">Rejected</span>
                                        </div>
                                    </div>
                                    <div class="">
                                        <div id="vacancyChart" class="ltr"></div>
                                    </div>
                                </div>
                            </div>
                        </div> --}}
                    </div>
                </div>
                <div class="col-xl-6">
                    <div class="row">
                        {{-- <div class="col-xl-12">
                            <div class="card">
                                <div class="card-header border-0 pb-0">
                                    <h4 class="card-title">Network</h4>
                                </div>
                                <div class="card-body pb-2">
                                    <div class="row sp10">
                                        <div class="col-xl-3 col-md-3 col-6 mb-4 text-center">
                                            <div class="d-inline-block ms-auto me-auto mb-md-3 mb-2 db-donut-chart-sale me-4">
                                                <span class="donut" data-peity='{ "fill": ["var(--primary)", "var(--light)"],   "innerRadius": 38, "radius": 10}'>6/9</span>
                                                <h4 class="mb-0 pie-label">66%</h4>
                                            </div>
                                            <h5 class="mb-1">Engineer</h5>
                                            <p class="mb-0">5,050 Vacancy</p>
                                        </div>
                                        <div class="col-xl-3 col-md-3 col-6 mb-4 text-center">
                                            <div class="d-inline-block ms-auto me-auto mb-md-3 mb-2 db-donut-chart-sale me-4">
                                                <span class="donut" data-peity='{ "fill": ["var(--primary)", "var(--light)"],   "innerRadius": 38, "radius": 10}'>3/9</span>
                                                <h4 class="mb-0 pie-label">31%</h4>
                                            </div>
                                            <h5 class="mb-1">Designer</h5>
                                            <p class="mb-0">10,524 Vacany</p>
                                        </div>
                                        <div class="col-xl-3 col-md-3 col-6 mb-4 text-center">
                                            <div class="d-inline-block ms-auto me-auto mb-md-3 mb-2 db-donut-chart-sale me-4">
                                                <span class="donut" data-peity='{ "fill": ["var(--primary)", "var(--light)"],   "innerRadius": 38, "radius": 10}'>6/8</span>
                                                <h4 class="mb-0 pie-label">75%</h4>
                                            </div>
                                            <h5 class="mb-1">Manager</h5>
                                            <p class="mb-0">621 Vacancy</p>
                                        </div>
                                        <div class="col-xl-3 col-md-3 col-6 mb-4 text-center">
                                            <div class="d-inline-block ms-auto me-auto mb-md-3 mb-2 db-donut-chart-sale me-4">
                                                <span class="donut" data-peity='{ "fill": ["var(--primary)", "var(--light)"],   "innerRadius": 38, "radius": 10}'>7/10</span>
                                                <h4 class="mb-0 pie-label">62%</h4>
                                            </div>
                                            <h5 class="mb-1">Programmer</h5>
                                            <p class="mb-0">9,662 Vacancy</p>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div> --}}
                        {{-- <div class="col-xl-12">
                            <div class="card">
                                <div class="card-body">
                                    <div class="row ">
                                        <div class="col-xl-8 col-xxl-7 col-sm-7">
                                            <div class="update-profile d-flex">
                                                <img src="images/profile/pic1.jpg" alt="">
                                                <div class="ms-4">
                                                    <h3 class="mb-0">Franklin Jr</h3>
                                                    <span class="text-primary d-block mb-xl-3 mb-1">UI / UX Designer</span>
                                                    <span><i class="fas fa-map-marker-alt me-1"></i>Medan, Sumatera Utara - ID</span>
                                                </div>
                                            </div>
                                        </div>
                                        <div class="col-xl-4 col-xxl-5 col-sm-5 sm-mt-auto mt-3 text-sm-end">
                                            <a href="javascript:void(0);" class="btn btn-primary">Update Profile</a>
                                        </div>
                                    </div>
                                    <div class="row mt-4 align-items-center">
                                        <h4 class="fs-20 mb-0 mt-1">Skills</h4>
                                        <div class="col-xl-6 col-sm-6">
                                            <div class="progress default-progress">
                                                <div class="progress-bar bg-green progress-animated" style="width: 90%; height:8px;" role="progressbar">
                                                    <span class="sr-only">90% Complete</span>
                                                </div>
                                            </div>
                                            <div class="d-flex align-items-end mt-2 pb-4 justify-content-between">
                                                <span class="font-w500">Figma</span>
                                                <h6 class="mb-0">90%</h6>
                                            </div>
                                            <div class="progress default-progress">
                                                <div class="progress-bar bg-info progress-animated" style="width: 68%; height:8px;" role="progressbar">
                                                    <span class="sr-only">45% Complete</span>
                                                </div>
                                            </div>
                                            <div class="d-flex align-items-end mt-2 pb-4 justify-content-between">
                                                <span class="font-w500">Adobe XD</span>
                                                <h6 class="mb-0">68%</h6>
                                            </div>
                                            <div class="progress default-progress">
                                                <div class="progress-bar bg-blue progress-animated" style="width: 85%; height:8px;" role="progressbar">
                                                    <span class="sr-only">85% Complete</span>
                                                </div>
                                            </div>
                                            <div class="d-flex align-items-end mt-2 justify-content-between">
                                                <span class="font-w500">Photoshop</span>
                                                <h6 class="mb-0">85%</h6>
                                            </div>
                                        </div>
                                        <div class="col-xl-6 col-sm-6">
                                            <div id="pieChart1"></div>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div> --}}
                    </div>
                </div>
                
            </div>	
        </div>
    </div>
    {{-- <div class="container">
        <div class="row justify-content-center">
            <div class="col-md-8">
                <div class="card">
                    <div class="card-header">{{ __('Dashboard') }}</div>

                    <div class="card-body">
                        @if (session('status'))
                            <div class="alert alert-success" role="alert">
                                {{ session('status') }}
                            </div>
                        @endif

                        {{ __('You are logged in!') }}
                    </div>
                </div>
            </div>
        </div>
    </div> --}}
@endsection

@section('javascript')
    <script src="vendor/bootstrap-select/dist/js/bootstrap-select.min.js"></script>
    <script src="vendor/bootstrap-datepicker-master/js/bootstrap-datepicker.min.js"></script>

    <!-- Apex Chart -->
    <script src="vendor/apexchart/apexchart.js"></script>
    <script src="vendor/chartjs/chart.bundle.min.js"></script>

    <!-- Chart piety plugin files -->
    <script src="vendor/peity/jquery.peity.min.js"></script>

    <!-- Dashboard 1 -->
    <script src="js/dashboard/dashboard-1.js"></script>

    <script src="vendor/owl-carousel/owl.carousel.js"></script>

    <script src="js/custom.min.js"></script>
    <script src="js/dlabnav-init.js"></script>
    <script>
        function JobickCarousel()
        {
            /*  testimonial one function by = owl.carousel.js */
            jQuery('.front-view-slider').owlCarousel({
                loop:false,
                margin:30,
                nav:false,
                autoplaySpeed: 3000,
                navSpeed: 3000,
                autoWidth:true,
                paginationSpeed: 3000,
                slideSpeed: 3000,
                smartSpeed: 3000,
                autoplay: false,
                animateOut: 'fadeOut',
                dots:false,
                navText: ['', ''],
                responsive:{
                    0:{
                        items:1,
                        
                        margin:10
                    },
                    
                    480:{
                        items:1
                    },			
                    
                    767:{
                        items:3
                    },
                    1750:{
                        items:3
                    }
                }
            })
        }
        jQuery(window).on('load',function(){
            setTimeout(function(){
                JobickCarousel();
            }, 1000); 
        });
    </script>
@endsection
