TIF_E41202420/resources/views/employee/pages/dashboard/statistic.blade.php

154 lines
10 KiB
PHP

@extends('employee.layouts.app')
@section('title', 'Dashboard | Career Development and Consultation (CDC)')
@push('styles')
<link href="{{ asset('assets/employee/plugins/custom/datatables/datatables.bundle.css') }}" rel="stylesheet"
type="text/css" />
@endpush
@section('navigation')
<h1 class="my-1 d-flex align-items-center text-dark fw-bolder fs-3">Dashboard
<span class="mx-2 border-gray-200 h-20px border-start ms-3"></span>
<small class="my-1 text-muted fs-7 fw-bold ms-1">Data</small>
</h1>
@endsection
@section('content')
<!--begin::Post-->
<div class="row g-5 g-xl-8">
<div class="col-xl-3">
<!--begin::Statistics Widget 5-->
<a href="#" class="card bg-body hoverable card-xl-stretch mb-xl-8">
<!--begin::Body-->
<div class="card-body">
<!--begin::Svg Icon | path: icons/duotune/general/gen032.svg-->
<span class="svg-icon svg-icon-primary svg-icon-3x ms-n1">
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"
fill="none">
<path opacity="0.3"
d="M20.5543 4.37824L12.1798 2.02473C12.0626 1.99176 11.9376 1.99176 11.8203 2.02473L3.44572 4.37824C3.18118 4.45258 3 4.6807 3 4.93945V13.569C3 14.6914 3.48509 15.8404 4.4417 16.984C5.17231 17.8575 6.18314 18.7345 7.446 19.5909C9.56752 21.0295 11.6566 21.912 11.7445 21.9488C11.8258 21.9829 11.9129 22 12.0001 22C12.0872 22 12.1744 21.983 12.2557 21.9488C12.3435 21.912 14.4326 21.0295 16.5541 19.5909C17.8169 18.7345 18.8277 17.8575 19.5584 16.984C20.515 15.8404 21 14.6914 21 13.569V4.93945C21 4.6807 20.8189 4.45258 20.5543 4.37824Z"
fill="black" />
<path
d="M14.854 11.321C14.7568 11.2282 14.6388 11.1818 14.4998 11.1818H14.3333V10.2272C14.3333 9.61741 14.1041 9.09378 13.6458 8.65628C13.1875 8.21876 12.639 8 12 8C11.361 8 10.8124 8.21876 10.3541 8.65626C9.89574 9.09378 9.66663 9.61739 9.66663 10.2272V11.1818H9.49999C9.36115 11.1818 9.24306 11.2282 9.14583 11.321C9.0486 11.4138 9 11.5265 9 11.6591V14.5227C9 14.6553 9.04862 14.768 9.14583 14.8609C9.24306 14.9536 9.36115 15 9.49999 15H14.5C14.6389 15 14.7569 14.9536 14.8542 14.8609C14.9513 14.768 15 14.6553 15 14.5227V11.6591C15.0001 11.5265 14.9513 11.4138 14.854 11.321ZM13.3333 11.1818H10.6666V10.2272C10.6666 9.87594 10.7969 9.57597 11.0573 9.32743C11.3177 9.07886 11.6319 8.9546 12 8.9546C12.3681 8.9546 12.6823 9.07884 12.9427 9.32743C13.2031 9.57595 13.3333 9.87594 13.3333 10.2272V11.1818Z"
fill="black" />
</svg>
</span>
<!--end::Svg Icon-->
<div class="mt-5 mb-2 text-gray-900 fw-bolder fs-2">{{ $users }}</div>
<div class="text-gray-900 fw-bold">Pengguna</div>
</div>
<!--end::Body-->
</a>
<!--end::Statistics Widget 5-->
</div>
<div class="col-xl-3">
<!--begin::Statistics Widget 5-->
<a href="#" class="card bg-body hoverable card-xl-stretch mb-xl-8">
<!--begin::Body-->
<div class="card-body">
<!--begin::Svg Icon | path: icons/duotune/ecommerce/ecm008.svg-->
<!--begin::Svg Icon | path: assets/media/icons/duotune/text/txt009.svg-->
<span class="svg-icon svg-icon-primary svg-icon-3x ms-n1">
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"
fill="none">
<path opacity="0.3"
d="M17 10H11C10.4 10 10 9.6 10 9V8C10 7.4 10.4 7 11 7H17C17.6 7 18 7.4 18 8V9C18 9.6 17.6 10 17 10ZM22 4V3C22 2.4 21.6 2 21 2H11C10.4 2 10 2.4 10 3V4C10 4.6 10.4 5 11 5H21C21.6 5 22 4.6 22 4ZM22 15V14C22 13.4 21.6 13 21 13H11C10.4 13 10 13.4 10 14V15C10 15.6 10.4 16 11 16H21C21.6 16 22 15.6 22 15ZM18 20V19C18 18.4 17.6 18 17 18H11C10.4 18 10 18.4 10 19V20C10 20.6 10.4 21 11 21H17C17.6 21 18 20.6 18 20Z"
fill="black" />
<path
d="M8 5C8 6.7 6.7 8 5 8C3.3 8 2 6.7 2 5C2 3.3 3.3 2 5 2C6.7 2 8 3.3 8 5ZM5 4C4.4 4 4 4.4 4 5C4 5.6 4.4 6 5 6C5.6 6 6 5.6 6 5C6 4.4 5.6 4 5 4ZM8 16C8 17.7 6.7 19 5 19C3.3 19 2 17.7 2 16C2 14.3 3.3 13 5 13C6.7 13 8 14.3 8 16ZM5 15C4.4 15 4 15.4 4 16C4 16.6 4.4 17 5 17C5.6 17 6 16.6 6 16C6 15.4 5.6 15 5 15Z"
fill="black" />
</svg></span>
<!--end::Svg Icon-->
<!--end::Svg Icon-->
<div class="mt-5 mb-2 text-gray-900 fw-bolder fs-2">{{ $statements }}</div>
<div class="text-gray-900 fw-bold">Statemen</div>
</div>
<!--end::Body-->
</a>
<!--end::Statistics Widget 5-->
</div>
<div class="col-xl-3">
<!--begin::Statistics Widget 5-->
<a href="#" class="card bg-body hoverable card-xl-stretch mb-xl-8">
<!--begin::Body-->
<div class="card-body">
<!--begin::Svg Icon | path: icons/duotune/finance/fin006.svg-->
<span class="svg-icon svg-icon-primary svg-icon-3x ms-n1">
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"
fill="none">
<path
d="M13 5.91517C15.8 6.41517 18 8.81519 18 11.8152C18 12.5152 17.9 13.2152 17.6 13.9152L20.1 15.3152C20.6 15.6152 21.4 15.4152 21.6 14.8152C21.9 13.9152 22.1 12.9152 22.1 11.8152C22.1 7.01519 18.8 3.11521 14.3 2.01521C13.7 1.91521 13.1 2.31521 13.1 3.01521V5.91517H13Z"
fill="black" />
<path opacity="0.3"
d="M19.1 17.0152C19.7 17.3152 19.8 18.1152 19.3 18.5152C17.5 20.5152 14.9 21.7152 12 21.7152C9.1 21.7152 6.50001 20.5152 4.70001 18.5152C4.30001 18.0152 4.39999 17.3152 4.89999 17.0152L7.39999 15.6152C8.49999 16.9152 10.2 17.8152 12 17.8152C13.8 17.8152 15.5 17.0152 16.6 15.6152L19.1 17.0152ZM6.39999 13.9151C6.19999 13.2151 6 12.5152 6 11.8152C6 8.81517 8.2 6.41515 11 5.91515V3.01519C11 2.41519 10.4 1.91519 9.79999 2.01519C5.29999 3.01519 2 7.01517 2 11.8152C2 12.8152 2.2 13.8152 2.5 14.8152C2.7 15.4152 3.4 15.7152 4 15.3152L6.39999 13.9151Z"
fill="black" />
</svg>
</span>
<!--end::Svg Icon-->
<div class="mt-5 mb-2 text-gray-900 fw-bolder fs-2">{{ $personalities }}</div>
<div class="text-gray-900 fw-bold">Kepribadian</div>
</div>
<!--end::Body-->
</a>
<!--end::Statistics Widget 5-->
</div>
<div class="col-xl-3">
<!--begin::Statistics Widget 5-->
<a href="#" class="mb-5 card bg-body hoverable card-xl-stretch mb-xl-8">
<!--begin::Body-->
<div class="card-body">
<!--begin::Svg Icon | path: icons/duotune/graphs/gra007.svg-->
<span class="svg-icon svg-icon-primary svg-icon-3x ms-n1">
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"
fill="none">
<path
d="M16.925 3.90078V8.00077L12.025 10.8008V5.10078L15.525 3.10078C16.125 2.80078 16.925 3.20078 16.925 3.90078ZM2.525 13.5008L6.025 15.5008L10.925 12.7008L6.025 9.90078L2.525 11.9008C1.825 12.3008 1.825 13.2008 2.525 13.5008ZM18.025 19.7008V15.6008L13.125 12.8008V18.5008L16.625 20.5008C17.225 20.8008 18.025 20.4008 18.025 19.7008Z"
fill="black" />
<path opacity="0.3"
d="M8.52499 3.10078L12.025 5.10078V10.8008L7.125 8.00077V3.90078C7.125 3.20078 7.92499 2.80078 8.52499 3.10078ZM7.42499 20.5008L10.925 18.5008V12.8008L6.02499 15.6008V19.7008C6.02499 20.4008 6.82499 20.8008 7.42499 20.5008ZM21.525 11.9008L18.025 9.90078L13.125 12.7008L18.025 15.5008L21.525 13.5008C22.225 13.2008 22.225 12.3008 21.525 11.9008Z"
fill="black" />
</svg></span>
<!--end::Svg Icon-->
<div class="mt-5 mb-2 text-gray-900 fw-bolder fs-2">{{ $rules }}</div>
<div class="text-gray-900 fw-bold">Aturan</div>
</div>
<!--end::Body-->
</a>
<!--end::Statistics Widget 5-->
</div>
</div>
<!--end::Post-->
<div class="card">
<div class="pt-4 border card-body">
<table class="table align-middle table-row-dashed fs-6 gy-5" id="myTable">
<thead>
<th class="max-w-5px">Nomor</th>
<th class="max-w-50px">Nama</th>
<th class="max-w-50px">Jurusan</th>
<th class="min-w-100px">Tanggal</th>
<th class="min-w-100px">Pengaturan</th>
</thead>
<tbody class="text-gray-600 fw-bold">
@foreach ($results as $index => $result)
<tr>
<td>{{ $index + 1 }}</td>
<td>{{ ucfirst($result->user->name) }}</td>
<td>{{ ucfirst($result->user->student->department->department_name) }}</td>
<td>{{ ucfirst($result->created_at) }}</td>
<td>
<div class="d-flex">
<a href="{{ route('employee.history', $result->id) }}"
class="btn btn-light btn-active-light-primary btn-sm">Detail
</a>
</div>
</td>
</tr>
@endforeach
</tbody>
</table>
</div>
</div>
@endsection
@push('scripts')
<script src="{{ asset('assets/employee/plugins/custom/datatables/datatables.bundle.js') }}"></script>
<script src="{{ asset('assets/employee/plugins/custom/datatables/table.js') }}"></script>
@endpush