91 lines
3.3 KiB
PHP
91 lines
3.3 KiB
PHP
@extends('layouts.app')
|
|
@section('content')
|
|
@include('modal.permohonanwang')
|
|
|
|
<div class="container">
|
|
<div class="row justify-content-center">
|
|
<div class="col-md-12">
|
|
<div class="card">
|
|
|
|
<nav aria-label="breadcrumb">
|
|
<ol class="breadcrumb pb-3">
|
|
<li class="breadcrumb-item"><a href="{{ route('home') }}">Home</a></li>
|
|
<li class="breadcrumb-item active" aria-current="page">Permohonan</li>
|
|
</ol>
|
|
</nav>
|
|
|
|
<div class="card-body mx-auto col-12">
|
|
|
|
@if(session()->has('message'))
|
|
<div class="alert alert-success">
|
|
{{ session()->get('message') }}
|
|
</div>
|
|
@endif
|
|
|
|
@if(session()->has('error'))
|
|
<div class="alert alert-danger">
|
|
{{ session()->get('error') }}
|
|
</div>
|
|
@endif
|
|
|
|
<div class="mx-auto d-flex justify-content-center col-12">
|
|
<div class="col-4">
|
|
<div class="small-box bg-warning text-center"><div class="inner"><b>Peti Besi: <span>RM {{ number_format($getVault,2) }}</span></b></div></div>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="d-flex justify-content-between mb-2">
|
|
<h5 class="mt-2">Senarai Permohonan Masih Aktif</h5>
|
|
<div>
|
|
<button class="btn btn-info" data-toggle="modal" data-target="#PermohonanWang">Mohon</button>
|
|
<button class="btn btn-info">Rekod Permohonan</button>
|
|
</div>
|
|
</div>
|
|
<div class="row">
|
|
<div class="col-md-12">
|
|
<table class="table table-striped table-hover" id="permohonantable">
|
|
<thead class="thead-dark">
|
|
<tr>
|
|
<th>Bil</th>
|
|
<th>No Permohonan</th>
|
|
<th>Tarikh Mohon</th>
|
|
<th>Jumlah Mohon (RM)</th>
|
|
<th>Bayaran Balik (RM)</th>
|
|
<th>Status</th>
|
|
<th>Jenis Permohonan</th>
|
|
<th>Act</th>
|
|
</tr>
|
|
</thead>
|
|
|
|
</table>
|
|
</div>
|
|
</div>
|
|
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<script type="text/javascript">
|
|
|
|
var tablemohon = $('#permohonantable').DataTable({
|
|
"ordering": false
|
|
});
|
|
|
|
$('#PermohonanWang').on('hidden.bs.modal', function (e) {
|
|
$(this)
|
|
.find("input[name='jumlahmohon']")
|
|
.val('')
|
|
.end()
|
|
.find("input[type=checkbox], input[type=radio]")
|
|
.prop("checked", "")
|
|
.end();
|
|
})
|
|
|
|
function funcpermohonan(){
|
|
$('#permohonanform').submit();
|
|
}
|
|
|
|
</script>
|
|
@endsection
|