102 lines
4.6 KiB
PHP
102 lines
4.6 KiB
PHP
@extends('layouts.app')
|
|
|
|
@section('content')
|
|
<div class="bg-gray-900 opacity-50 hidden fixed inset-0 z-10" id="sidebarBackdrop"></div>
|
|
<div id="main-content" class="h-full w-full bg-gray-50 relative overflow-y-auto">
|
|
<main>
|
|
<div class="pt-6 px-4">
|
|
<breadcrumb :items="[{'title' : 'Kelulusan Serahan', 'icon' : 'fas fa-stamp','url' : {{ json_encode(route('transaction.online.home')) }}}]"></breadcrumb>
|
|
|
|
<a href="{{ route('autoserahan') }}"
|
|
class="mb-4 inline-flex items-center px-3 py-1.5 rounded-md bg-yellow-600 text-white">
|
|
<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke="currentColor" class="h-6 w-6">
|
|
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M7 16l-4-4m0 0l4-4m-4 4h18">
|
|
</path>
|
|
</svg>
|
|
<span class="ml-1 font-bold text-lg">Back</span>
|
|
</a>
|
|
|
|
<div class="bg-white p-4 rounded-lg shadow-md mb-4">
|
|
<form method="GET" action="{{ route('autoserahan.rekod') }}" class="grid grid-cols-1 md:grid-cols-3 lg:grid-cols-5 gap-4">
|
|
<!-- Transaksi -->
|
|
<div>
|
|
<label class="block text-gray-700 text-sm font-bold mb-1">Transaksi</label>
|
|
<select name="transaksi" class="w-full border rounded-lg p-2">
|
|
<option value="">Select Transaksi</option>
|
|
<option value="create">Create</option>
|
|
<option value="delete">Delete</option>
|
|
</select>
|
|
</div>
|
|
|
|
<!-- Range Date -->
|
|
<div>
|
|
<label class="block text-gray-700 text-sm font-bold mb-1">Date Range</label>
|
|
<div class="flex space-x-2">
|
|
<input type="date" name="tarikh_mula" class="w-1/2 border rounded-lg p-2">
|
|
<input type="date" name="tarikh_hingga" class="w-1/2 border rounded-lg p-2">
|
|
</div>
|
|
</div>
|
|
|
|
<!-- Range Time -->
|
|
<div>
|
|
<label class="block text-gray-700 text-sm font-bold mb-1">Time Range</label>
|
|
<div class="flex space-x-2">
|
|
<input type="time" name="masa_mula" class="w-1/2 border rounded-lg p-2">
|
|
<input type="time" name="masa_hingga" class="w-1/2 border rounded-lg p-2">
|
|
</div>
|
|
</div>
|
|
|
|
<!-- Cawangan -->
|
|
<div>
|
|
<label class="block text-gray-700 text-sm font-bold mb-1">Cawangan</label>
|
|
<select name="kodcaw" class="w-full border rounded-lg p-2">
|
|
<option value="">Select Cawangan</option>
|
|
@foreach ($filteredCawangan as $kodcaw)
|
|
<option value="{{ $kodcaw['kodcaw'] }}">{{ $kodcaw['details_caw'] }}</option>
|
|
@endforeach
|
|
</select>
|
|
</div>
|
|
|
|
<!-- Approval Status -->
|
|
<div>
|
|
<label class="block text-gray-700 text-sm font-bold mb-1">Approval Status</label>
|
|
<select name="status" class="w-full border rounded-lg p-2">
|
|
<option value="">Select Status</option>
|
|
<option value="APPROVED">Approved</option>
|
|
<option value="REJECTED">Rejected</option>
|
|
</select>
|
|
</div>
|
|
|
|
<!-- Submit Button -->
|
|
<div class="col-span-1 md:col-span-3 lg:col-span-5 flex justify-end">
|
|
<button type="submit" class="bg-blue-500 hover:bg-blue-600 text-white font-bold py-2 px-4 rounded-lg">
|
|
Apply Filters
|
|
</button>
|
|
</div>
|
|
</form>
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
<div id="tableContainer">
|
|
@include('components.list-table', ['list' => $list,'record' => true])
|
|
</div>
|
|
|
|
<!-- Pagination Controls -->
|
|
<div class="mt-4 flex justify-right">
|
|
{{ $list->links() }}
|
|
</div>
|
|
</div>
|
|
</main>
|
|
|
|
|
|
|
|
@include('layouts.footer')
|
|
|
|
</div>
|
|
@push('additional_scripts')
|
|
|
|
@endpush
|
|
@endsection |