TIF_E41202420/resources/views/employee/pages/rule/index.blade.php

57 lines
2.8 KiB
PHP

@extends('employee.layouts.app')
@section('title', 'Manajemen Aturan | 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">Aturan
<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">Manajemen Aturan</small>
</h1>
@endsection
@section('content')
<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="min-w-5px">Nomor</th>
<th class="min-w-50px">Kode</th>
<th class="min-w-125px">Statemen</th>
<th class="min-w-125px">Tipe Kepribadian</th>
<th class="min-w-100px">Bobot</th>
<th class="min-w-100px">Pengaturan</th>
</thead>
<tbody class="text-gray-600 fw-bold">
@foreach ($rules as $index => $rule)
<tr>
<td>{{ $index + 1 }}</td>
<td>{{ $rule->rule_code }}</td>
<td>[{{ $rule->statement->statement_code }}] {{ $rule->statement->statement }}</td>
<td>[{{ $rule->personality->personality_code }}] {{ $rule->personality->personality }}</td>
<td>{{ $rule->weight->weight }}</td>
<td>
<div class="d-flex">
<a href="{{ route('rules.edit', $rule->id) }}"
class="btn btn-light btn-active-light-primary btn-sm">Perbarui
</a>
<form action="{{ route('rules.delete', $rule->id) }}" method="POST">
@csrf
@method('delete')
<a onclick="event.preventDefault(); this.closest('form').submit();"
class="mx-2 btn btn-light btn-active-light-primary btn-sm">Hapus</a>
</form>
</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