fix skit2 untuk imac

This commit is contained in:
hafifierahman
2021-03-29 15:30:53 +08:00
parent 1bb699f6dd
commit 4922237a87
8 changed files with 917 additions and 460 deletions
+21 -6
View File
@@ -182,7 +182,7 @@ class KhazanahController extends Controller
array_push($arraygadaitebus,$gadai_tebus); array_push($arraygadaitebus,$gadai_tebus);
array_push($arraytuntutbaki,$tuntutbaki); array_push($arraytuntutbaki,$tuntutbaki);
array_push($addtunai,$addtunai); array_push($arrayaddtunai,$addtunai);
array_push($arraytunaiharini,$tunai); array_push($arraytunaiharini,$tunai);
array_push($arraytunai,$tunaipast); array_push($arraytunai,$tunaipast);
@@ -192,7 +192,7 @@ class KhazanahController extends Controller
$petibesi = Http::get(config('api.url') . '/api/VaultController/all/'. $auth_user['cawangan'])->json(); $petibesi = Http::get(config('api.url') . '/api/VaultController/all/'. $auth_user['cawangan'])->json();
return view('khazanah.alirantunai',compact('cawangan_info','api_url','arraytunaiharini','arraytunai','listUser','petibesi','arraygadaitebus','arraytuntutbaki')); return view('khazanah.alirantunai',compact('cawangan_info','api_url','arraytunaiharini','arraytunai','listUser','petibesi','arraygadaitebus','arraytuntutbaki','arrayaddtunai'));
} }
public function gadaian() public function gadaian()
@@ -623,6 +623,8 @@ class KhazanahController extends Controller
{ {
$auth_user = Auth::user(); $auth_user = Auth::user();
// dd(request()->all());
$cawangan_info = Http::get(config('api.url') . '/api/cawangan/'. $auth_user['cawangan'])->json(); $cawangan_info = Http::get(config('api.url') . '/api/cawangan/'. $auth_user['cawangan'])->json();
$bakiperubatan = 0; $bakiperubatan = 0;
@@ -649,7 +651,7 @@ class KhazanahController extends Controller
$tag = 1; $tag = 1;
break; break;
case "pos": case "pos":
$kategori = "Belanja AM -Postage"; $kategori = "Belanja AM - Postage";
$tag = 1; $tag = 1;
break; break;
} }
@@ -668,11 +670,13 @@ class KhazanahController extends Controller
])->json(); ])->json();
$updateVault=Http::put( config('api.url').'/api/UpdateVault/'.$auth_user['cawangan'],[ $updateVault = Http::put( config('api.url').'/api/UpdateVault/Panjar/'.$auth_user['cawangan'],[
'totpanjar'=>$request->bayaran 'totpanjar'=>$request->bayaran
]); ]);
return response($panjar); return response($updateVault);
} }
public function pendahuluan() public function pendahuluan()
@@ -1645,7 +1649,18 @@ class KhazanahController extends Controller
$usercawangan = User::where('cawangan','=',$auth_user['cawangan'])->get(); $usercawangan = User::where('cawangan','=',$auth_user['cawangan'])->get();
return view('khazanah.panjar',compact('cawangan_info','api_url','usercawangan')); $denominasi=Http::get(config('api.url').'/api/DenominasiController/'.$auth_user['cawangan'])->json();
if(sizeof($denominasi) == 0)
{
$denominasi=Http::post(config('api.url').'/api/DenominasiCreate/'.$auth_user['cawangan'])->json();
}
else
{
$denominasi=$denominasi[0];
}
return view('khazanah.panjar',compact('cawangan_info','api_url','usercawangan','denominasi'));
} }
public function unjuran() public function unjuran()
@@ -11,10 +11,10 @@
<ul class="nav nav-pills"> <ul class="nav nav-pills">
<li class="nav-item"> <li class="nav-item">
<a class="nav-link active" data-toggle="pill" href="#home" role="tab" aria-controls="pills-flamingo" aria-selected="true">Bundle</a> <a class="nav-link" data-toggle="pill" href="#home" role="tab" aria-controls="pills-flamingo" aria-selected="true">Bundle</a>
</li> </li>
<li class="nav-item"> <li class="nav-item">
<a class="nav-link" data-toggle="pill" href="#profile" role="tab" aria-controls="pills-cuckoo" aria-selected="false">Keping</a> <a class="nav-link active" data-toggle="pill" href="#profile" role="tab" aria-controls="pills-cuckoo" aria-selected="false">Keping</a>
</li> </li>
</ul> </ul>
@@ -30,16 +30,16 @@
<div class="modal-body"> <div class="modal-body">
<div class="tab-content"> <div class="tab-content">
<div class="tab-pane fade show active" id="home" role="tabpanel" aria-labelledby="flamingo-tab"> <div class="tab-pane fade" id="home" role="tabpanel" aria-labelledby="flamingo-tab">
<table class="table"> <table class="table">
<tr> <tr>
<th></th> <th></th>
<th>Ambilan</th> <th>Peti Besi</th>
<th>Total</th> <th>Jumlah (RM)</th>
<th></th> <th></th>
<th>Ambilan</th> <th>Peti Besi</th>
<th>Total (RM)</th> <th>Jumlah (RM)</th>
</tr> </tr>
<tr> <tr>
<td>RM1</td> <td>RM1</td>
@@ -68,16 +68,16 @@
</table> </table>
</div> </div>
<div class="tab-pane fade" id="profile" role="tabpanel" aria-labelledby="profile-tab"> <div class="tab-pane fade show active" id="profile" role="tabpanel" aria-labelledby="profile-tab">
<table class="table"> <table class="table">
<tr> <tr>
<th></th> <th></th>
<th>Ambilan</th> <th>Peti Besi</th>
<th>Total</th> <th>Jumlah (RM)</th>
<th></th> <th></th>
<th>Ambilan</th> <th>Peti Besi</th>
<th>Total (RM)</th> <th>Jumlah (RM)</th>
</tr> </tr>
<tr> <tr>
@@ -297,9 +297,9 @@
$('#ringgit100').val(val.txtring100); $('#ringgit100').val(val.txtring100);
$('#totalring100').val(formatter.format(val.k100)); $('#totalring100').val(formatter.format(val.k100));
$('#amaunkeping').val(formatter.format(val.jumlahkeping)); $('#amaunkeping').val("RM " + formatter.format(val.jumlahkeping));
$('#amaunbundle').val(formatter.format(val.jumlahbundle)); $('#amaunbundle').val("RM " + formatter.format(val.jumlahbundle));
$('#amaunkeseluruhan').val(formatter.format(val.txtjumlah)); $('#amaunkeseluruhan').val("RM " + formatter.format(val.txtjumlah));
}); });
} }
+359 -283
View File
@@ -65,8 +65,10 @@
@if($index1 == 0) @if($index1 == 0)
<div class="tab-pane fade show active" id="pills-{{ $ls->id }}" role="tabpanel" aria-labelledby="pills-home-tab"> <div class="tab-pane fade show active" id="pills-{{ $ls->id }}" role="tabpanel" aria-labelledby="pills-home-tab">
<div class="col-12 row"> <fieldset class="border p-2">
<div class="col-lg-6 col-xl-4 col-12"> <legend class="w-auto">Hari Ini</legend>
<div class="col-12 row">
<div class="col-lg-6 col-xl-4 col-12">
<!-- small box --> <!-- small box -->
<div class="small-box bg-primary"> <div class="small-box bg-primary">
<div class="inner"> <div class="inner">
@@ -147,162 +149,197 @@
</div> </div>
</div> </div>
<div class="card"> </fieldset>
<div class="card-header">
</div>
<div class="card-body">
<nav>
<div class="nav nav-tabs mb-4" id="nav-tab" role="tablist">
<a class="nav-item nav-link active" id="nav-home-tab" data-toggle="tab" href="#nav-{{ $ls->id }}-history" role="tab" aria-controls="nav-history" aria-selected="true">History Tunai</a>
<a class="nav-item nav-link" id="nav-home-tab" data-toggle="tab" href="#nav-{{ $ls->id }}-addtunai" role="tab" aria-controls="nav-addtunai" aria-selected="true">Tunai</a>
<a class="nav-item nav-link" id="nav-profile-tab" data-toggle="tab" href="#nav-{{ $ls->id }}-gt" role="tab" aria-controls="nav-gt" aria-selected="false">Gadai / Tebus</a>
<a class="nav-item nav-link" id="nav-contact-tab" data-toggle="tab" href="#nav-{{ $ls->id }}-tuntutbaki" role="tab" aria-controls="nav-tuntutbaki" aria-selected="false">Tuntut Baki</a>
</div>
</nav>
<div class="tab-content" id="nav-tabContent">
<div class="mt-3">
<div class="tab-pane fade show active" id="nav-{{ $ls->id }}-history" role="tabpanel" aria-labelledby="nav-history-tab">
<table class='table' id='table-{{ $ls->id }}' style="width:100%;">
<thead>
<tr>
<th>bil</th>
<th>Tarikh</th>
<th>Baki Awal Tunai</th>
<th>Tunai Diterima</th>
<th>Tunai Dikeluar</th>
<th>Gadaian</th>
<th>Tebusan</th>
<th>Baki Akhir Tunai</th>
</tr>
</thead>
<tbody>
@foreach ($arraytunai[$index1] as $tunai)
<tr>
<td>{{ $loop->iteration }}</td>
<td>{{ $tunai['tarikh'] }}</td>
<td>{{ number_format($tunai['bakiawal'],2) }}</td>
<td>{{ number_format($tunai['tambah'],2) }}</td>
<td>{{ number_format($tunai['kurang'],2) }}</td>
<td>{{ number_format($tunai['keluar'],2) }}</td>
<td>{{ number_format($tunai['masuk'],2) }}</td>
<td>{{ number_format($tunai['baki'],2) }}</td>
</tr>
@endforeach
</tbody>
</table>
</div>
<div class="tab-pane fade" id="nav-{{ $ls->id }}-tunai" role="tabpanel" aria-labelledby="nav-tunai-tab"> <ul class="nav nav-tabs mt-4" id="myTab" role="tablist">
..... <li class="nav-item">
</div> <a class="nav-link active" id="history-tab" data-toggle="tab" href="#nav-{{ $ls->id }}-history" role="tab" aria-controls="home" aria-selected="true">History Tunai</a>
</li>
<li class="nav-item">
<a class="nav-link" id="addtunai-tab" data-toggle="tab" href="#nav-{{ $ls->id }}-addtunai" role="tab" aria-controls="profile" aria-selected="false">Add Tunai</a>
</li>
<li class="nav-item">
<a class="nav-link" id="gt-tab" data-toggle="tab" href="#nav-{{ $ls->id }}-gt" role="tab" aria-controls="contact" aria-selected="false">Gadai/Tebus</a>
</li>
<li class="nav-item">
<a class="nav-link" id="tuntutbaki-tab" data-toggle="tab" href="#nav-{{ $ls->id }}-tuntutbaki" role="tab" aria-controls="contact" aria-selected="false">Tuntut Baki</a>
</li>
</ul>
<div class="tab-pane fade" id="nav-{{ $ls->id }}-gt" role="tabpanel" aria-labelledby="nav-gt-tab"> <div class="mt-3">
<div class="tab-content" id="myTabContent">
<table class="table text-center" id="tablegadaitebus-{{ $ls->id }}"> <div class="tab-pane fade show active" id="nav-{{ $ls->id }}-history" role="tabpanel" aria-labelledby="history-tab">
<thead>
<tr>
<th>Bil</th>
<th>No Rujukan</th>
<th>Pinjaman (RM)</th>
<th>Nilai Marhun (RM)</th>
<th>Jenis Transaksi</th>
</tr>
</thead>
<tbody>
@if(is_object($arraygadaitebus) || is_array($arraygadaitebus))
@foreach($arraygadaitebus[$index1] as $gt)
<tr>
<td> {{ $loop->iteration }} </td>
<td> {{ $gt['norujukan'] }} </td>
<td> {{ number_format($gt['pinjaman'],2) }} </td>
<td> {{ number_format($gt['nilaimarhun'],2) }} </td>
<td> @php if($gt['jenistebus'] == ''){
echo '<h4><span class="badge badge-success">Gadai</span></h4>';
}else{
echo '<h4><span class="badge badge-danger">Tebus</span></h4>';
}
@endphp </td>
</tr>
@endforeach
@endif
</tbody>
</table>
</div>
<div class="tab-pane fade" id="nav-{{ $ls->id }}-tuntutbaki" role="tabpanel" aria-labelledby="nav-tuntutbaki-tab">
<table class="table text-center" id="tabletuntutbaki-{{ $ls->id }}">
<thead>
<tr>
<th>Bil</th>
<th>Tarikh</th>
<th>Caj Lelong (RM)</th>
<th>Jumlah (RM)</th>
<th>Jenis</th>
</tr>
</thead>
<tbody>
@if(is_object($arraytuntutbaki) || is_array($arraytuntutbaki))
@foreach($arraytuntutbaki[$index1] as $tb)
<tr>
<td> {{ $loop->iteration }} </td>
<td> {{ $tb['tarikh'] }} </td>
<td> {{ number_format($tb['cajlelong'],2) }} </td>
<td> {{ number_format($tb['jumlah'],2) }} </td>
<td> @php if($tb['jenis'] == 'T'){
echo '<h4><span class="badge badge-success">Baki Lelong</span></h4>';
}else{
echo '<h4><span class="badge badge-danger">Rugi Lelong</span></h4>';
}
@endphp </td>
</tr>
@endforeach
@endif
</tbody>
</table>
</div>
</div>
</div>
<table class='table' id='table-{{ $ls->id }}' style="width:100%;">
<thead>
<tr>
<th>bil</th>
<th>Tarikh</th>
<th>Baki Awal Tunai</th>
<th>Tunai Diterima</th>
<th>Tunai Dikeluar</th>
<th>Gadaian</th>
<th>Tebusan</th>
<th>Baki Akhir Tunai</th>
</tr>
</thead>
<tbody>
@foreach ($arraytunai[$index1] as $tunai)
<tr>
<td>{{ $loop->iteration }}</td>
<td>{{ $tunai['tarikh'] }}</td>
<td>{{ number_format($tunai['bakiawal'],2) }}</td>
<td>{{ number_format($tunai['tambah'],2) }}</td>
<td>{{ number_format($tunai['kurang'],2) }}</td>
<td>{{ number_format($tunai['keluar'],2) }}</td>
<td>{{ number_format($tunai['masuk'],2) }}</td>
<td>{{ number_format($tunai['baki'],2) }}</td>
</tr>
@endforeach
</tbody>
</table>
</div> </div>
<div class="tab-pane fade" id="nav-{{ $ls->id }}-addtunai" role="tabpanel" aria-labelledby="addtunai-tab">
<table class="table text-center" id="tableaddtunai-{{ $ls->id }}">
<thead>
<tr>
<th>Bil</th>
<th>Masa</th>
<th>Debit (RM)</th>
<th>Kredit (RM)</th>
<th>Nota</th>
</tr>
</thead>
<tbody>
@if(is_object($arrayaddtunai) || is_array($arrayaddtunai))
@foreach($arrayaddtunai[$index1] as $at)
<tr>
<td> {{ $loop->iteration }} </td>
<td> {{ $at['tarikh'] }} </td>
<td> {{ number_format($at['tambah'],2) }} </td>
<td> {{ number_format($at['kurang'],2) }} </td>
<td> {{ $at['nota'] }} </td>
</tr>
@endforeach
@endif
</tbody>
</table>
</div>
<div class="tab-pane fade" id="nav-{{ $ls->id }}-gt" role="tabpanel" aria-labelledby="gt-tab">
<table class="table text-center" id="tablegadaitebus-{{ $ls->id }}">
<thead>
<tr>
<th>Bil</th>
<th>No Rujukan</th>
<th>Pinjaman (RM)</th>
<th>Nilai Marhun (RM)</th>
<th>Jenis Transaksi</th>
</tr>
</thead>
<tbody>
@if(is_object($arraygadaitebus) || is_array($arraygadaitebus))
@foreach($arraygadaitebus[$index1] as $gt)
<tr>
<td> {{ $loop->iteration }} </td>
<td> {{ $gt['norujukan'] }} </td>
<td> {{ number_format($gt['pinjaman'],2) }} </td>
<td> {{ number_format($gt['nilaimarhun'],2) }} </td>
<td> @php if($gt['jenistebus'] == ''){
echo '<h4><span class="badge badge-success">Gadai</span></h4>';
}else{
echo '<h4><span class="badge badge-danger">Tebus</span></h4>';
}
@endphp </td>
</tr>
@endforeach
@endif
</tbody>
</table>
</div>
<div class="tab-pane fade" id="nav-{{ $ls->id }}-tuntutbaki" role="tabpanel" aria-labelledby="tuntutbaki-tab">
<table class="table text-center" id="tabletuntutbaki-{{ $ls->id }}">
<thead>
<tr>
<th>Bil</th>
<th>Tarikh</th>
<th>Caj Lelong (RM)</th>
<th>Jumlah (RM)</th>
<th>Jenis</th>
</tr>
</thead>
<tbody>
@if(is_object($arraytuntutbaki) || is_array($arraytuntutbaki))
@foreach($arraytuntutbaki[$index1] as $tb)
<tr>
<td> {{ $loop->iteration }} </td>
<td> {{ $tb['tarikh'] }} </td>
<td> {{ number_format($tb['cajlelong'],2) }} </td>
<td> {{ number_format($tb['jumlah'],2) }} </td>
<td> @php if($tb['jenis'] == 'T'){
echo '<h4><span class="badge badge-success">Baki Lelong</span></h4>';
}else{
echo '<h4><span class="badge badge-danger">Rugi Lelong</span></h4>';
}
@endphp </td>
</tr>
@endforeach
@endif
</tbody>
</table>
</div>
</div>
</div> </div>
</div> </div>
@else @else
<div class="tab-pane fade" id="pills-{{ $ls->id }}" role="tabpanel" aria-labelledby="pills-profile-tab"> <div class="tab-pane fade" id="pills-{{ $ls->id }}" role="tabpanel" aria-labelledby="pills-profile-tab">
<fieldset class="border p-2">
<legend class="w-auto">Hari Ini</legend>
<div class="col-12 row"> <div class="col-12 row">
<div class="col-lg-6 col-xl-4 col-12"> <div class="col-lg-6 col-xl-4 col-12">
<!-- small box --> <!-- small box -->
<div class="small-box bg-primary"> <div class="small-box bg-primary">
<div class="inner"> <div class="inner">
<h5>RM {{ (empty($arraytunaiharini[$index1])) ? '0.00' : number_format($arraytunaiharini[$index1]['bakiawal'],2) }}</h5> <h5>RM {{ (empty($arraytunaiharini[$index1])) ? '0.00' : number_format($arraytunaiharini[$index1]['bakiawal'],2) }}</h5>
<p>Baki Awal Tunai</p> <p>Baki Awal Tunai</p>
</div> </div>
<div class="icon"> <div class="icon">
</div>
</div> </div>
</div> </div>
</div>
<div class="col-lg-6 col-xl-4 col-12">
<!-- small box --> <div class="col-lg-6 col-xl-4 col-12">
<div class="small-box bg-primary"> <!-- small box -->
<div class="inner"> <div class="small-box bg-primary">
<h5>RM {{ (empty($arraytunaiharini[$index1])) ? '0.00' : number_format($arraytunaiharini[$index1]['tambah'],2) }}</h5> <div class="inner">
<h5>RM {{ (empty($arraytunaiharini[$index1])) ? '0.00' : number_format($arraytunaiharini[$index1]['tambah'],2) }}</h5>
<p>Tunai Diterima</p>
</div> <p>Tunai Diterima</p>
<div class="icon"> </div>
</div> <div class="icon">
</div> </div>
</div> </div>
</div>
<div class="col-lg-6 col-xl-4 col-12">
<!-- small box --> <div class="col-lg-6 col-xl-4 col-12">
<!-- small box -->
<div class="small-box bg-primary"> <div class="small-box bg-primary">
<div class="inner"> <div class="inner">
<h5>RM {{ (empty($arraytunaiharini[$index1])) ? '0.00' : number_format($arraytunaiharini[$index1]['kurang'],2) }}</h5> <h5>RM {{ (empty($arraytunaiharini[$index1])) ? '0.00' : number_format($arraytunaiharini[$index1]['kurang'],2) }}</h5>
@@ -312,167 +349,203 @@
<div class="icon"> <div class="icon">
</div> </div>
</div> </div>
</div> </div>
</div> </div>
<div class="col-12 row">
<div class="col-lg-6 col-xl-4 col-12">
<!-- small box -->
<div class="small-box bg-primary">
<div class="inner">
<h5>RM {{ (empty($arraytunaiharini[$index1])) ? '0.00' : number_format($arraytunaiharini[$index1]['baki'],2) }}</h5>
<p>Baki Akhir Tunai</p>
</div>
<div class="icon">
</div>
</div>
</div>
<div class="col-12 row">
<div class="col-lg-6 col-xl-4 col-12"> <div class="col-lg-6 col-xl-4 col-12">
<!-- small box --> <!-- small box -->
<div class="small-box bg-primary"> <div class="small-box bg-primary">
<div class="inner"> <div class="inner">
<h5>RM {{ (empty($arraytunaiharini[$index1])) ? '0.00' : number_format($arraytunaiharini[$index1]['baki'],2) }}</h5> <h5>RM {{ (empty($arraytunaiharini[$index1])) ? '0.00' : number_format($arraytunaiharini[$index1]['keluar'],2) }}</h5>
<p>Baki Akhir Tunai</p> <p>Gadaian</p>
</div> </div>
<div class="icon"> <div class="icon">
</div>
</div> </div>
</div> </div>
<div class="col-lg-6 col-xl-4 col-12">
<!-- small box -->
<div class="small-box bg-primary">
<div class="inner">
<h5>RM {{ (empty($arraytunaiharini[$index1])) ? '0.00' : number_format($arraytunaiharini[$index1]['keluar'],2) }}</h5>
<p>Gadaian</p>
</div>
<div class="icon">
</div>
</div>
</div>
<div class="col-lg-6 col-xl-4 col-12">
<!-- small box -->
<div class="small-box bg-primary">
<div class="inner">
<h5>RM {{ (empty($arraytunaiharini[$index1])) ? '0.00' : number_format($arraytunaiharini[$index1]['masuk'],2) }}</h5>
<p>Tebusan</p>
</div>
<div class="icon">
</div>
</div>
</div>
</div>
<nav>
<div class="nav nav-tabs mb-4" id="nav-tab" role="tablist">
<a class="nav-item nav-link active" id="nav-history-tab-{{ $ls->id }}" data-toggle="tab" href="#nav-{{$ls->id}}-history" role="tab" aria-controls="nav-history-{{ $ls->id }}" aria-selected="true">History Tunai</a>
<a class="nav-item nav-link" id="nav-tunai-tab-{{ $ls->id }}" data-toggle="tab" href="#nav-{{$ls->id}}-tunai" role="tab" aria-controls="nav-tunai-{{ $ls->id }}" aria-selected="true">Tunai</a>
<a class="nav-item nav-link" id="nav-gt-tab-{{ $ls->id }}" data-toggle="tab" href="#nav-{{$ls->id}}-gt" role="tab" aria-controls="nav-gt-{{ $ls->id }}" aria-selected="false">Gadai / Tebus</a>
<a class="nav-item nav-link" id="nav-tuntutbaki-tab-{{ $ls->id }}" data-toggle="tab" href="#nav-{{$ls->id}}-tuntutbaki" role="tab" aria-controls="nav-tuntutbaki-{{ $ls->id }}" aria-selected="false">Tuntut Baki</a>
</div>
</nav>
<div class="tab-content" id="nav-tabContent">
<div class="mt-3">
<div class="tab-pane fade show active" id="nav-{{$ls->id}}-history" role="tabpanel" aria-labelledby="nav-history-tab-{{ $ls->id }}">
<table class='table mt-4' id='table-{{ $ls->id }}'>
<thead>
<tr>
<th>bil</th>
<th>Tarikh</th>
<th>Baki Awal Tunai</th>
<th>Tunai Diterima</th>
<th>Tunai Dikeluar</th>
<th>Gadaian</th>
<th>Tebusan</th>
<th>Baki Akhir Tunai</th>
</tr>
</thead>
<tbody>
{{-- {{ dd($arraytunai) }} --}}
@foreach ($arraytunai[$index1] as $tunai)
{{-- {{ dd($tunai) }} --}}
<tr>
<td>{{ $loop->iteration }}</td>
<td>{{ $tunai['tarikh'] }}</td>
<td>{{ $tunai['bakiawal'] }}</td>
<td>{{ $tunai['tambah'] }}</td>
<td>{{ $tunai['kurang'] }}</td>
<td>{{ $tunai['keluar'] }}</td>
<td>{{ $tunai['masuk'] }}</td>
<td>{{ $tunai['baki'] }}</td>
</tr>
@endforeach
</tbody>
</table>
</div> </div>
<div class="tab-pane fade" id="nav-{{ $ls->id }}-tunai" role="tabpanel" aria-labelledby="nav-tunai-tab-{{ $ls->id }}"> <div class="col-lg-6 col-xl-4 col-12">
..... <!-- small box -->
<div class="small-box bg-primary">
<div class="inner">
<h5>RM {{ (empty($arraytunaiharini[$index1])) ? '0.00' : number_format($arraytunaiharini[$index1]['masuk'],2) }}</h5>
<p>Tebusan</p>
</div>
<div class="icon">
</div>
</div>
</div> </div>
</div>
<div class="tab-pane fade" id="nav-{{ $ls->id }}-gt" role="tabpanel" aria-labelledby="nav-gt-tab-{{ $ls->id }}"> </fieldset>
<table class="table text-center mt-4" id="tablegadaitebus-{{ $ls->id }}">
<ul class="nav nav-tabs mt-4" id="myTab" role="tablist">
<li class="nav-item">
<a class="nav-link active" id="history-tab" data-toggle="tab" href="#nav-{{ $ls->id }}-history" role="tab" aria-controls="home" aria-selected="true">History Tunai</a>
</li>
<li class="nav-item">
<a class="nav-link" id="addtunai-tab" data-toggle="tab" href="#nav-{{ $ls->id }}-addtunai" role="tab" aria-controls="profile" aria-selected="false">Add Tunai</a>
</li>
<li class="nav-item">
<a class="nav-link" id="gt-tab" data-toggle="tab" href="#nav-{{ $ls->id }}-gt" role="tab" aria-controls="contact" aria-selected="false">Gadai/Tebus</a>
</li>
<li class="nav-item">
<a class="nav-link" id="tuntutbaki-tab" data-toggle="tab" href="#nav-{{ $ls->id }}-tuntutbaki" role="tab" aria-controls="contact" aria-selected="false">Tuntut Baki</a>
</li>
</ul>
<div class="mt-3">
<div class="tab-content" id="myTabContent">
<div class="tab-pane fade show active" id="nav-{{ $ls->id }}-history" role="tabpanel" aria-labelledby="history-tab">
<table class='table' id='table-{{ $ls->id }}' style="width:100%;">
<thead> <thead>
<tr> <tr>
<th>Bil</th> <th>bil</th>
<th>No Rujukan</th>
<th>Pinjaman (RM)</th>
<th>Nilai Marhun (RM)</th>
<th>Jenis Transaksi</th>
</tr>
</thead>
<tbody>
@if(is_object($arraygadaitebus) || is_array($arraygadaitebus))
@foreach($arraygadaitebus[$index1] as $gt)
<tr>
<td> {{ $loop->iteration }} </td>
<td> {{ $gt['norujukan'] }} </td>
<td> {{ number_format($gt['pinjaman'],2) }} </td>
<td> {{ number_format($gt['nilaimarhun'],2) }} </td>
<td> @php if($gt['jenistebus'] == ''){
echo '<h4><span class="badge badge-success">Gadai</span></h4>';
}else{
echo '<h4><span class="badge badge-danger">Tebus</span></h4>';
}
@endphp </td>
</tr>
@endforeach
@endif
</tbody>
</table>
</div>
<div class="tab-pane fade" id="nav-{{ $ls->id }}-tuntutbaki" role="tabpanel" aria-labelledby="nav-tuntutbaki-tab-{{ $ls->id }}">
<table class="table text-center" id="tabletuntutbaki-{{ $ls->id }}">
<thead>
<tr>
<th>Bil</th>
<th>Tarikh</th> <th>Tarikh</th>
<th>Caj Lelong (RM)</th> <th>Baki Awal Tunai</th>
<th>Jumlah (RM)</th> <th>Tunai Diterima</th>
<th>Jenis</th> <th>Tunai Dikeluar</th>
<th>Gadaian</th>
<th>Tebusan</th>
<th>Baki Akhir Tunai</th>
</tr> </tr>
</thead> </thead>
<tbody> <tbody>
@if(is_object($arraytuntutbaki) || is_array($arraytuntutbaki)) @foreach ($arraytunai[$index1] as $tunai)
@foreach($arraytuntutbaki[$index1] as $tb) <tr>
<tr> <td>{{ $loop->iteration }}</td>
<td> {{ $loop->iteration }} </td> <td>{{ $tunai['tarikh'] }}</td>
<td> {{ $tb['tarikh'] }} </td> <td>{{ number_format($tunai['bakiawal'],2) }}</td>
<td> {{ $tb['cajlelong'] }} </td> <td>{{ number_format($tunai['tambah'],2) }}</td>
<td> {{ $tb['jumlah'] }} </td> <td>{{ number_format($tunai['kurang'],2) }}</td>
<td> @php if($tb['jenis'] == 'T'){ <td>{{ number_format($tunai['keluar'],2) }}</td>
echo '<h4><span class="badge badge-success">Baki Lelong</span></h4>'; <td>{{ number_format($tunai['masuk'],2) }}</td>
}else{ <td>{{ number_format($tunai['baki'],2) }}</td>
echo '<h4><span class="badge badge-danger">Rugi Lelong</span></h4>'; </tr>
}
@endphp </td>
</tr>
@endforeach @endforeach
@endif
</tbody> </tbody>
</table>
</div>
<div class="tab-pane fade" id="nav-{{ $ls->id }}-addtunai" role="tabpanel" aria-labelledby="addtunai-tab">
<table class="table text-center" id="tableaddtunai-{{ $ls->id }}">
<thead>
<tr>
<th>Bil</th>
<th>Masa</th>
<th>Debit (RM)</th>
<th>Kredit (RM)</th>
<th>Nota</th>
</tr>
</thead>
<tbody>
@if(is_object($arrayaddtunai) || is_array($arrayaddtunai))
@foreach($arrayaddtunai[$index1] as $at)
<tr>
<td> {{ $loop->iteration }} </td>
<td> {{ $at['tarikh'] }} </td>
<td> {{ number_format($at['tambah'],2) }} </td>
<td> {{ number_format($at['kurang'],2) }} </td>
<td> {{ $at['nota'] }} </td>
</tr>
@endforeach
@endif
</tbody>
</table>
</div>
<div class="tab-pane fade" id="nav-{{ $ls->id }}-gt" role="tabpanel" aria-labelledby="gt-tab">
<table class="table text-center" id="tablegadaitebus-{{ $ls->id }}">
<thead>
<tr>
<th>Bil</th>
<th>No Rujukan</th>
<th>Pinjaman (RM)</th>
<th>Nilai Marhun (RM)</th>
<th>Jenis Transaksi</th>
</tr>
</thead>
<tbody>
@if(is_object($arraygadaitebus) || is_array($arraygadaitebus))
@foreach($arraygadaitebus[$index1] as $gt)
<tr>
<td> {{ $loop->iteration }} </td>
<td> {{ $gt['norujukan'] }} </td>
<td> {{ number_format($gt['pinjaman'],2) }} </td>
<td> {{ number_format($gt['nilaimarhun'],2) }} </td>
<td> @php if($gt['jenistebus'] == ''){
echo '<h4><span class="badge badge-success">Gadai</span></h4>';
}else{
echo '<h4><span class="badge badge-danger">Tebus</span></h4>';
}
@endphp </td>
</tr>
@endforeach
@endif
</tbody>
</table> </table>
</div>
<div class="tab-pane fade" id="nav-{{ $ls->id }}-tuntutbaki" role="tabpanel" aria-labelledby="tuntutbaki-tab">
<table class="table text-center" id="tabletuntutbaki-{{ $ls->id }}">
<thead>
<tr>
<th>Bil</th>
<th>Tarikh</th>
<th>Caj Lelong (RM)</th>
<th>Jumlah (RM)</th>
<th>Jenis</th>
</tr>
</thead>
<tbody>
@if(is_object($arraytuntutbaki) || is_array($arraytuntutbaki))
@foreach($arraytuntutbaki[$index1] as $tb)
<tr>
<td> {{ $loop->iteration }} </td>
<td> {{ $tb['tarikh'] }} </td>
<td> {{ number_format($tb['cajlelong'],2) }} </td>
<td> {{ number_format($tb['jumlah'],2) }} </td>
<td> @php if($tb['jenis'] == 'T'){
echo '<h4><span class="badge badge-success">Baki Lelong</span></h4>';
}else{
echo '<h4><span class="badge badge-danger">Rugi Lelong</span></h4>';
}
@endphp </td>
</tr>
@endforeach
@endif
</tbody>
</table>
</div>
</div>
</div> </div>
</div> </div>
</div> </div>
@@ -543,6 +616,9 @@
var tabletuntutbaki = $('#tabletuntutbaki-' + element).DataTable({ var tabletuntutbaki = $('#tabletuntutbaki-' + element).DataTable({
}); });
var tableaddtunai = $('#tableaddtunai-' + element).DataTable({
});
}); });
var tablecapaian = $('#table-PetiBesi').DataTable({ var tablecapaian = $('#table-PetiBesi').DataTable({
+117 -11
View File
@@ -3,6 +3,7 @@
@section('content') @section('content')
@include('modal.panjar') @include('modal.panjar')
@include('modal.denopanjar')
<div class="container"> <div class="container">
<div class="row justify-content-center"> <div class="row justify-content-center">
@@ -32,19 +33,19 @@
<label class="col-1 text-right">Akhir</label> <label class="col-1 text-right">Akhir</label>
{{-- <input type="date" class="form-control col-3"/> --}} {{-- <input type="date" class="form-control col-3"/> --}}
<input type="text" class="form-control col-3" placeholder="Pilih Tarikh" aria-label="Tarikh" id="akhir" name="akhir"> <input type="text" class="form-control col-3" placeholder="Pilih Tarikh" aria-label="Tarikh" id="akhir" name="akhir">
<button class="btn btn-info ml-2" onclick="caritarikh()">Cari</button> <button class="btn btn-primary ml-2" onclick="caritarikh()">Cari</button>
</div> </div>
</div> </div>
<div class="mt-3 col-12"> <div class="mt-3 col-12">
<div class="row"> <div class="row">
<div class="col-3"> <div class="col-3">
<button class="btn btn-info btn-lg btn-block" data-toggle="modal" data-target="#keraianModal" data-backdrop="static" data-keyboard="false">Keraian</button> <button class="btn btn-primary btn-lg btn-block" data-toggle="modal" data-target="#keraianModal" data-backdrop="static" data-keyboard="false">Keraian</button>
<button class="btn btn-info btn-lg btn-block" data-toggle="modal" data-target="#SelenggaraModal" data-backdrop="static" data-keyboard="false">Selenggara</button> <button class="btn btn-primary btn-lg btn-block" data-toggle="modal" data-target="#SelenggaraModal" data-backdrop="static" data-keyboard="false">Selenggara</button>
<button class="btn btn-info btn-lg btn-block" data-toggle="modal" data-target="#BelanjaamModal" data-backdrop="static" data-keyboard="false">Belanja Am</button> <button class="btn btn-primary btn-lg btn-block" data-toggle="modal" data-target="#BelanjaamModal" data-backdrop="static" data-keyboard="false">Belanja Am</button>
<button class="btn btn-info btn-lg btn-block" data-toggle="modal" data-target="#PerubatanModal" data-backdrop="static" data-keyboard="false">Perubatan</button> <button class="btn btn-primary btn-lg btn-block" data-toggle="modal" data-target="#PerubatanModal" data-backdrop="static" data-keyboard="false">Perubatan</button>
<button class="btn btn-info btn-lg btn-block" data-toggle="modal" data-target="#DapurModal" data-backdrop="static" data-keyboard="false">Dapur</button> <button class="btn btn-primary btn-lg btn-block" data-toggle="modal" data-target="#DapurModal" data-backdrop="static" data-keyboard="false">Dapur</button>
<button class="btn btn-info btn-lg btn-block" data-toggle="modal" data-target="#PosModal" data-backdrop="static" data-keyboard="false">Pos</button> <button class="btn btn-primary btn-lg btn-block" data-toggle="modal" data-target="#PosModal" data-backdrop="static" data-keyboard="false">Pos</button>
</div> </div>
<div class="col-9"> <div class="col-9">
<table class='table mt-4' id='table-panjar' style="width:100%;"> <table class='table mt-4' id='table-panjar' style="width:100%;">
@@ -67,6 +68,7 @@
</div> </div>
</div> </div>
</div> </div>
<script src="{{ asset('js/main.js') }}"></script>
<script> <script>
@@ -84,7 +86,7 @@
{ {
let today = new Date(); let today = new Date();
let dd = String(today.getDate()).padStart(2, '0'); let dd = String(today.getDate()).padStart(2, '0');
let mm = String(today.getMonth() + 1).padStart(2, '0'); //January is 0! let mm = String(today.getMonth() + 1).padStart(2, '0'); //Januari Keno Wak 0 Macei Array La
let yyyy = String(today.getFullYear()); let yyyy = String(today.getFullYear());
let yy = yyyy.substring(2, 4); let yy = yyyy.substring(2, 4);
@@ -197,12 +199,116 @@
} }
function panjaransubmit() function checkformpanjar()
{ {
let baucer = $('input[name').val();
console.log('test'); // return false;
// // let baucer = $('input[name').val();
// console.log('test');
// console.log('test');
} }
function openupdeno()
{
$('#denominasipanjar').modal('show');
}
function terimadeno()
{
// alert($('#keraianModal').hasClass('in')); --> nak tahu modal mano huk shown lagi
// $keraian = $('#keraianModal').hasClass('in');
// $selenggara = $('#SelenggaraModal').hasClass('in');
// $belanjaam = $('#BelanjaamModal').hasClass('in');
// $perubatan = $('#PerubatanModal').hasClass('in');
// $dapur = $('#DapurModal').hasClass('in');
// if($keraian == true)
// if($selenggara == true)
// if($belanjaam == true)
// if($perubatan == true)
// if($dapur == true)
let amaunkiraan = $('#amaunkiraan').val();
$('input[name="bayaran"]').val(amaunkiraan);
$('#denominasipanjar').modal('hide');
}
//Modal Reset
$('#keraianModal').on('hidden.bs.modal', function (e) {
$(this)
.find("input,textarea,select")
.val('')
.end()
.find("input[type=checkbox], input[type=radio]")
.prop("checked", "")
.end();
});
$('#SelenggaraModal').on('hidden.bs.modal', function (e) {
$(this)
.find("input,textarea,select")
.val('')
.end()
.find("input[type=checkbox], input[type=radio]")
.prop("checked", "")
.end();
});
$('#BelanjaamModal').on('hidden.bs.modal', function (e) {
$(this)
.find("input,textarea,select")
.val('')
.end()
.find("input[type=checkbox], input[type=radio]")
.prop("checked", "")
.end();
});
$('#PerubatanModal').on('hidden.bs.modal', function (e) {
$(this)
.find("input,textarea,select")
.val('')
.end()
.find("input[type=checkbox], input[type=radio]")
.prop("checked", "")
.end();
});
$('#DapurModal').on('hidden.bs.modal', function (e) {
$(this)
.find("input,textarea,select")
.val('')
.end()
.find("input[type=checkbox], input[type=radio]")
.prop("checked", "")
.end();
});
$('#denominasipanjar').on('hidden.bs.modal', function (e) {
$(this)
.find("input,textarea,select")
.val('')
.end()
.find("input[type=checkbox], input[type=radio]")
.prop("checked", "")
.end();
$('#amaunkiraan').val();
});
//End Modal Reset
</script> </script>
@endsection @endsection
@@ -30,10 +30,10 @@
<tr> <tr>
<th></th> <th></th>
<th>Ambilan</th> <th>Ambilan</th>
<th>Total</th> <th>Jumlah (RM)</th>
<th></th> <th></th>
<th>Ambilan</th> <th>Ambilan</th>
<th>Total (RM)</th> <th>Jumlah (RM)</th>
</tr> </tr>
<tr> <tr>
<td>RM1</td> <td>RM1</td>
@@ -68,10 +68,10 @@
<tr> <tr>
<th></th> <th></th>
<th>Ambilan</th> <th>Ambilan</th>
<th>Total</th> <th>Jumlah (RM)</th>
<th></th> <th></th>
<th>Ambilan</th> <th>Ambilan</th>
<th>Total (RM)</th> <th>Jumlah (RM)</th>
</tr> </tr>
<tr> <tr>
@@ -27,11 +27,11 @@
<th></th> <th></th>
<th style="display:none;" name="denominasi" class="denominasi">Peti Besi</th> <th style="display:none;" name="denominasi" class="denominasi">Peti Besi</th>
<th>Ambilan</th> <th>Ambilan</th>
<th>Total</th> <th>Jumlah (RM)</th>
<th></th> <th></th>
<th style="display:none;" name="denominasi" class="denominasi">Peti Besi</th> <th style="display:none;" name="denominasi" class="denominasi">Peti Besi</th>
<th>Ambilan</th> <th>Ambilan</th>
<th>Total (RM)</th> <th>Jumlah (RM)</th>
</tr> </tr>
{{-- <tr> {{-- <tr>
<td>RM1</td> <td>RM1</td>
+113
View File
@@ -0,0 +1,113 @@
<div class="modal fade" id="denominasipanjar" tabindex="-1" role="dialog" aria-labelledby="denominasipanjarModalCenterTitle" aria-hidden="true">
<div class="modal-dialog modal-dialog-centered modal-xl" role="document">
<div class="modal-content">
<div class="modal-header">
<ul class="nav nav-pills">
<li class="nav-item">
<a class="nav-link active" data-toggle="pill" href="#home" role="tab" aria-controls="pills-flamingo" aria-selected="true">Keping</a>
</li>
</ul>
<label class="mt-2 ml-3">Amaun Kiraan:</label><input type="text" class="form-control col-3 ml-3" id="amaunkiraan" placeholder="0.00" readonly>
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">&times;</span>
</button>
</div>
<div class="modal-body">
<div class="tab-content">
<div class="tab-pane fade show active" id="home" role="tabpanel" aria-labelledby="flamingo-tab">
<table class="table text-center">
<tr>
<th></th>
<th style="display:none;" name="denominasi" class="denominasi">Peti Besi</th>
<th>Ambilan</th>
<th>Jumlah (RM)</th>
<th></th>
<th style="display:none;" name="denominasi" class="denominasi">Peti Besi</th>
<th>Ambilan</th>
<th>Jumlah (RM)</th>
</tr>
<tr>
<td>RM0.01</td>
<td style="display:none;" name="denominasi" class="denominasi"><input type="text" class="form-control" value="{{ $denominasi['txtsen1'] }}" readonly/></td>
<td><input type="text" name="ambilansen1" class="form-control" id="sen1" onkeyup="kiraan(this)"/> </td>
<td><input type="text" name="totalsen1" id="totalsen1" class="form-control" value="0.00" readonly/> </td>
<td>RM1</td>
<td style="display:none;" name="denominasi" class="denominasi"><input type="text" class="form-control" value="{{ $denominasi['txtring1'] }}" readonly/></td>
<td><input type="text" name="ambilanring1" class="form-control" id="ringgit1" onkeyup="kiraan(this)"/> </td>
<td><input type="text" name="totalring1" id="totalring1" class="form-control" value="0.00" readonly/> </td>
</tr>
<tr>
<td>RM0.05</td>
<td style="display:none;" name="denominasi" class="denominasi"><input type="text" class="form-control" value="{{ $denominasi['txtsen5'] }}" readonly/></td>
<td><input type="text" name="ambilansen5" class="form-control" id="sen5" onkeyup="kiraan(this)"/> </td>
<td><input type="text" name="totalsen5" id="totalsen5" class="form-control" value="0.00" readonly/> </td>
<td>RM5</td>
<td style="display:none;" name="denominasi" class="denominasi"><input type="text" class="form-control" value="{{ $denominasi['txtring5'] }}" readonly/></td>
<td><input type="text" name="ambilanring5" class="form-control" id="ringgit5" onkeyup="kiraan(this)"/> </td>
<td><input type="text" name="totalring5" id="totalring5" class="form-control" value="0.00" readonly/> </td>
</tr>
<tr>
<td>RM0.10</td>
<td style="display:none;" name="denominasi" class="denominasi"><input type="text" class="form-control" value="{{ $denominasi['txtsen10'] }}" readonly/></td>
<td><input type="text" name="ambilansen10" class="form-control" id="sen10" onkeyup="kiraan(this)"/> </td>
<td><input type="text" name="totalsen10" id="totalsen10" class="form-control" value="0.00" readonly/> </td>
<td>RM10</td>
<td style="display:none;" name="denominasi" class="denominasi"><input type="text" class="form-control" value="{{ $denominasi['txtring10'] }}" readonly/></td>
<td><input type="text" name="ambilanring10" class="form-control" id="ringgit10" onkeyup="kiraan(this)"/> </td>
<td><input type="text" name="totalring10" id="totalring10" class="form-control" value="0.00" readonly/> </td>
</tr>
<tr>
<td>RM0.20</td>
<td style="display:none;" name="denominasi" class="denominasi"><input type="text" class="form-control" value="{{ $denominasi['txtsen20'] }}" readonly/></td>
<td><input type="text" name="ambilansen20" class="form-control" id="sen20" onkeyup="kiraan(this)"/> </td>
<td><input type="text" name="totalsen20" id="totalsen20" class="form-control" value="0.00" readonly/> </td>
<td> RM20</td>
<td style="display:none;" name="denominasi" class="denominasi"><input type="text" class="form-control" value="{{ $denominasi['txtring20'] }}" readonly/></td>
<td><input type="text" name="ambilanring20" class="form-control" id="ringgit20" onkeyup="kiraan(this)"/> </td>
<td><input type="text" name="totalring20" id="totalring20" class="form-control" value="0.00" readonly/> </td>
</tr>
<tr>
<td>RM0.50</td>
<td style="display:none;" name="denominasi" class="denominasi"><input type="text" class="form-control" value="{{ $denominasi['txtsen50'] }}" readonly/></td>
<td><input type="text" name="ambilansen50" class="form-control" id="sen50" onkeyup="kiraan(this)"/> </td>
<td><input type="text" name="totalsen50" id="totalsen50" class="form-control" value="0.00" readonly/> </td>
<td>RM50</td>
<td style="display:none;" name="denominasi" class="denominasi"><input type="text" class="form-control" value="{{ $denominasi['txtring50'] }}" readonly/></td>
<td><input type="text" name="ambilanring50" class="form-control" id="ringgit50" onkeyup="kiraan(this)"/> </td>
<td><input type="text" name="totalring50" id="totalring50" class="form-control" value="0.00" readonly/> </td>
</tr>
<tr>
<td></td>
<td></td>
<td></td>
<td>RM100 </td>
<td style="display:none;" name="denominasi" class="denominasi"><input type="text" class="form-control" value="{{ $denominasi['txtring100'] }}" readonly/></td>
<td><input type="text" name="ambilanring100" class="form-control" id="ringgit100" onkeyup="kiraan(this)"/> </td>
<td><input type="text" name="totalring100" id="totalring100" class="form-control" value="0.00" readonly/> </td>
</tr>
</table>
</div>
</div>
<input type="hidden" id="jenisjenis"/>
<input type="hidden" id="kodcawangan"/>
<input type="hidden" id="tellerla"/>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-danger btn-lg" data-dismiss="modal">Batal</button>
<button type="button" class="btn btn-success btn-lg" onclick="terimadeno();">Terima</button>
</div>
</div>
</div>
</div>
+286 -139
View File
@@ -8,37 +8,61 @@
<span aria-hidden="true">&times;</span> <span aria-hidden="true">&times;</span>
</button> </button>
</div> </div>
<form name="frmmodal" method="post" action="{{ route('khazanah.createpanjar') }}"> <form name="frmmodal" method="post" action="{{ route('khazanah.createpanjar') }}" onsubmit="return checkformpanjar();">
@csrf @csrf
<div class="modal-body text-center"> <div class="modal-body text-center">
<input type="hidden" name="jenismodal" value="keraian"/> <input type="hidden" name="jenismodal" value="keraian"/>
<label>Baucer No: </label>
<input type="text" name="baucer" class="form-control mb-4 baucer" readonly/>
<label>Tarikh: </label>
<input type="date" class="form-control mb-4" name="tarikh"/>
<label>Tuntutan Oleh: </label>
<select name="tuntutan" class="form-control mb-4">
@foreach($usercawangan as $user)
<option value="{{ $user->name }}">{{ $user->name }}</option>
@endforeach
</select>
{{-- <input type="text" class="form-control mb-4" name="tuntutan"/> --}}
<label>Tarikh Bil: </label>
<input type="date" class="form-control mb-4" name="tarikhbil"/>
<label>Deskripsi:</label>
<textarea row="3" name="deskripsi" class="form-control mb-4"> </textarea>
<label>Bayaran RM: </label>
<input type="text" class="form-control mb-4" name="bayaran"/>
<div class="row">
<div class="col-4">
<label>Baucer No: </label>
</div>
<div class="col-8">
<input type="text" name="baucer" class="form-control mb-4 baucer" readonly/>
</div>
<div class="col-4">
<label>Tarikh: </label>
</div>
<div class="col-8">
<input type="date" class="form-control mb-4" name="tarikh"/>
</div>
<div class="col-4">
<label>Tuntutan Oleh: </label>
</div>
<div class="col-8">
<select name="tuntutan" class="form-control mb-4">
@foreach($usercawangan as $user)
<option value="{{ $user->name }}">{{ $user->name }}</option>
@endforeach
</select>
{{-- <input type="text" class="form-control mb-4" name="tuntutan"/> --}}
</div>
<div class="col-4">
<label>Tarikh Bil: </label>
</div>
<div class="col-8">
<input type="date" class="form-control mb-4" name="tarikhbil"/>
</div>
<div class="col-4">
<label>Deskripsi:</label>
</div>
<div class="col-8">
<textarea row="3" name="deskripsi" class="form-control mb-4"> </textarea>
</div>
<div class="col-4">
<label>Bayaran (RM): </label>
</div>
<div class="col-8">
<div class="row pl-3">
<input type="text" class="form-control col-8" name="bayaran" readonly/>
<button type="button" class="btn btn-primary ml-1 col-3" onclick="openupdeno();">Deno</button>
</div>
</div>
</div>
</div> </div>
<div class="modal-footer"> <div class="modal-footer">
<button type="button" class="btn btn-danger btn-lg" data-dismiss="modal">Batal</button> <button type="button" class="btn btn-danger" data-dismiss="modal">Batal</button>
<button type="button" class="btn btn-success btn-lg" onclick="panjaransubmit()">Terima</button> <button type="button" class="btn btn-success">Terima</button>
</div> </div>
</form> </form>
</div> </div>
@@ -55,36 +79,61 @@
<span aria-hidden="true">&times;</span> <span aria-hidden="true">&times;</span>
</button> </button>
</div> </div>
<form name="frmmodal" method="post" action="{{ route('khazanah.createpanjar') }}"> <form name="frmmodal" method="post" action="{{ route('khazanah.createpanjar') }}" onsubmit="return checkformpanjar();">
@csrf @csrf
<div class="modal-body text-center"> <div class="modal-body text-center">
<input type="hidden" name="jenismodal" value="selenggara"/> <input type="hidden" name="jenismodal" value="selenggara"/>
<label>Baucer No:
<input type="text" name="baucer" class="form-control mb-4 baucer" readonly/>
<label>Tarikh: <div class="row">
<input type="date" name="tarikh" class="form-control mb-4"/> <div class="col-4">
<label>Baucer No:</label>
<label>Tuntutan Oleh: </div>
<select name="tuntutan" class="form-control mb-4"> <div class="col-8">
@foreach($usercawangan as $user) <input type="text" name="baucer" class="form-control mb-4 baucer" readonly/>
<option value="{{ $user->name }}">{{ $user->name }}</option> </div>
@endforeach <div class="col-4">
</select> <label>Tarikh:
{{-- <input type="text" name="tuntutan" class="form-control mb-4"/> --}} </div>
<div class="col-8">
<label>Tarikh Bil: <input type="date" name="tarikh" class="form-control mb-4"/>
<input type="date" name="tarikhbil" class="form-control mb-4"/> </div>
<div class="col-4">
<label>Deskripsi:</label> <label>Tuntutan Oleh:</label>
<textarea row="3" name="deskripsi" class="form-control mb-4"> </textarea> </div>
<div class="col-8">
<label>Bayaran RM: <select name="tuntutan" class="form-control mb-4">
<input type="text" name="bayaran" class="form-control mb-4"/> @foreach($usercawangan as $user)
<option value="{{ $user->name }}">{{ $user->name }}</option>
@endforeach
</select>
{{-- <input type="text" name="tuntutan" class="form-control mb-4"/> --}}
</div>
<div class="col-4">
<label>Tarikh Bil:</label>
</div>
<div class="col-8">
<input type="date" name="tarikhbil" class="form-control mb-4"/>
</div>
<div class="col-4">
<label>Deskripsi:</label>
</div>
<div class="col-8">
<textarea row="3" name="deskripsi" class="form-control mb-4"> </textarea>
</div>
<div class="col-4">
<label>Bayaran (RM):</label>
</div>
<div class="col-8">
<div class="row pl-3">
<input type="text" name="bayaran" readonly class="form-control col-8"/>
<button type="button" class="btn btn-primary ml-1 col-3" onclick="openupdeno();">Deno</button>
</div>
</div>
</div>
</div> </div>
<div class="modal-footer"> <div class="modal-footer">
<button type="button" class="btn btn-danger btn-lg" data-dismiss="modal">Batal</button> <button type="button" class="btn btn-danger" data-dismiss="modal">Batal</button>
<button type="button" class="btn btn-success btn-lg" onclick="panjaransubmit()">Terima</button> <button type="button" class="btn btn-success">Terima</button>
</div> </div>
</form> </form>
</div> </div>
@@ -101,37 +150,62 @@
<span aria-hidden="true">&times;</span> <span aria-hidden="true">&times;</span>
</button> </button>
</div> </div>
<form name="frmmodal" method="post" action="{{ route('khazanah.createpanjar') }}"> <form name="frmmodal" method="post" action="{{ route('khazanah.createpanjar') }}" onsubmit="return checkformpanjar();">
@csrf @csrf
<div class="modal-body text-center"> <div class="modal-body text-center">
<input type="hidden" name="jenismodal" value="belanjaam"/> <input type="hidden" name="jenismodal" value="belanjaam"/>
<label>Baucer No:</label>
<input type="text" name="baucer" class="form-control mb-4 baucer" readonly/>
<label>Tarikh:</label> <div class="row">
<input type="date" name="tarikh" class="form-control mb-4"/> <div class="col-4">
<label>Baucer No:</label>
<label>Tuntutan Oleh:</label> </div>
<select name="tuntutan" class="form-control mb-4"> <div class="col-8">
@foreach($usercawangan as $user) <input type="text" name="baucer" class="form-control mb-4 baucer" readonly/>
<option value="{{ $user->name }}">{{ $user->name }}</option> </div>
@endforeach <div class="col-4">
</select> <label>Tarikh:</label>
{{-- <input type="text" name="tuntutan" class="form-control mb-4"/> --}} </div>
<div class="col-8">
<label>Tarikh Bil:</label> <input type="date" name="tarikh" class="form-control mb-4"/>
<input type="date" name="tarikhbil" class="form-control mb-4"/> </div>
<div class="col-4">
<label>Deskripsi Postage:</label> <label>Tuntutan Oleh:</label>
<textarea row="3" name="deskripsi" class="form-control mb-4"> </textarea> </div>
<div class="col-8">
<label>Bayaran RM:</label> <select name="tuntutan" class="form-control mb-4">
<input type="text" name="bayaran" class="form-control mb-4"/> @foreach($usercawangan as $user)
<option value="{{ $user->name }}">{{ $user->name }}</option>
@endforeach
</select>
{{-- <input type="text" name="tuntutan" class="form-control mb-4"/> --}}
</div>
<div class="col-4">
<label>Tarikh Bil:</label>
</div>
<div class="col-8">
<input type="date" name="tarikhbil" class="form-control mb-4"/>
</div>
<div class="col-4">
<label>Deskripsi:</label>
</div>
<div class="col-8">
<textarea row="3" name="deskripsi" class="form-control mb-4"> </textarea>
</div>
<div class="col-4">
<label>Bayaran (RM):</label>
</div>
<div class="col-8">
<div class="row pl-3">
<input type="text" name="bayaran" readonly class="form-control col-8"/>
<button type="button" class="btn btn-primary ml-1 col-3" onclick="openupdeno();">Deno</button>
</div>
</div>
</div>
</div> </div>
<div class="modal-footer"> <div class="modal-footer">
<button type="button" class="btn btn-danger btn-lg" data-dismiss="modal">Batal</button> <button type="button" class="btn btn-danger" data-dismiss="modal">Batal</button>
<button type="submit" class="btn btn-success btn-lg">Terima</button> <button type="submit" class="btn btn-success">Terima</button>
</div> </div>
</form> </form>
</div> </div>
@@ -149,37 +223,62 @@
<span aria-hidden="true">&times;</span> <span aria-hidden="true">&times;</span>
</button> </button>
</div> </div>
<form name="frmmodal" method="post" action="{{ route('khazanah.createpanjar') }}"> <form name="frmmodal" method="post" action="{{ route('khazanah.createpanjar') }}" onsubmit="return checkformpanjar();">
@csrf @csrf
<div class="modal-body text-center"> <div class="modal-body text-center">
<input type="hidden" name="jenismodal" value="perubatan"/> <input type="hidden" name="jenismodal" value="perubatan"/>
<label>Baucer No:</label>
<input type="text" name="baucer" class="form-control mb-4 baucer" readonly/>
<label>Tarikh:</label> <div class="row">
<input type="date" name="tarikh" class="form-control mb-4"/> <div class="col-4">
<label>Baucer No:</label>
<label>Tuntutan Oleh:</label> </div>
<select name="tuntutan" class="form-control mb-4"> <div class="col-8">
@foreach($usercawangan as $user) <input type="text" name="baucer" class="form-control mb-4 baucer" readonly/>
<option value="{{ $user->name }}">{{ $user->name }}</option> </div>
@endforeach <div class="col-4">
</select> <label>Tarikh:</label>
{{-- <input type="text" name="tuntutan" class="form-control mb-4"/> --}} </div>
<div class="col-8">
<label>Tarikh Bil:</label> <input type="date" name="tarikh" class="form-control mb-4"/>
<input type="date" name="tarikhbil" class="form-control mb-4"/> </div>
<div class="col-4">
<label>Deskripsi:</label> <label>Tuntutan Oleh:</label>
<textarea row="3" name="deskripsi" class="form-control mb-4"> </textarea> </div>
<div class="col-8">
<label>Bayaran RM:</label> <select name="tuntutan" class="form-control mb-4">
<input type="text" name="bayaran" class="form-control mb-4"/> @foreach($usercawangan as $user)
<option value="{{ $user->name }}">{{ $user->name }}</option>
@endforeach
</select>
{{-- <input type="text" name="tuntutan" class="form-control mb-4"/> --}}
</div>
<div class="col-4">
<label>Tarikh Bil:</label>
</div>
<div class="col-8">
<input type="date" name="tarikhbil" class="form-control mb-4"/>
</div>
<div class="col-4">
<label>Deskripsi:</label>
</div>
<div class="col-8">
<textarea row="3" name="deskripsi" class="form-control mb-4"> </textarea>
</div>
<div class="col-4">
<label>Bayaran (RM):</label>
</div>
<div class="col-8">
<div class="row pl-3">
<input type="text" name="bayaran" readonly class="form-control col-8"/>
<button type="button" class="btn btn-primary ml-1 col-3" onclick="openupdeno();">Deno</button>
</div>
</div>
</div>
</div> </div>
<div class="modal-footer"> <div class="modal-footer">
<button type="button" class="btn btn-danger btn-lg" data-dismiss="modal">Batal</button> <button type="button" class="btn btn-danger" data-dismiss="modal">Batal</button>
<button type="submit" class="btn btn-success btn-lg">Terima</button> <button type="submit" class="btn btn-success">Terima</button>
</div> </div>
</form> </form>
</div> </div>
@@ -196,37 +295,62 @@
<span aria-hidden="true">&times;</span> <span aria-hidden="true">&times;</span>
</button> </button>
</div> </div>
<form name="frmmodal" method="post" action="{{ route('khazanah.createpanjar') }}"> <form name="frmmodal" method="post" action="{{ route('khazanah.createpanjar') }}" onsubmit="return checkformpanjar();">
@csrf @csrf
<div class="modal-body text-center"> <div class="modal-body text-center">
<input type="hidden" name="jenismodal" value="dapur"/> <input type="hidden" name="jenismodal" value="dapur"/>
<label>Baucer No:</label>
<input type="text" name="baucer" class="form-control mb-4 baucer" readonly/>
<label>Tarikh:</label>
<input type="date" name="tarikh" class="form-control mb-4"/>
<label>Tuntutan Oleh:</label>
<select name="tuntutan" class="form-control mb-4">
@foreach($usercawangan as $user)
<option value="{{ $user->name }}">{{ $user->name }}</option>
@endforeach
</select>
{{-- <input type="text" name="tuntutan" class="form-control mb-4"/> --}}
<label>Tarikh Bil:</label>
<input type="date" name="tarikhbil" class="form-control mb-4"/>
<label>Deskripsi:</label> <div class="row">
<textarea row="3" name="deskripsi" class="form-control mb-4"> </textarea> <div class="col-4">
<label>Baucer No:</label>
<label>Bayaran RM:</label> </div>
<input type="text" name="bayaran" class="form-control mb-4"/> <div class="col-8">
<input type="text" name="baucer" class="form-control mb-4 baucer" readonly/>
</div>
<div class="col-4">
<label>Tarikh:</label>
</div>
<div class="col-8">
<input type="date" name="tarikh" class="form-control mb-4"/>
</div>
<div class="col-4">
<label>Tuntutan Oleh:</label>
</div>
<div class="col-8">
<select name="tuntutan" class="form-control mb-4">
@foreach($usercawangan as $user)
<option value="{{ $user->name }}">{{ $user->name }}</option>
@endforeach
</select>
{{-- <input type="text" name="tuntutan" class="form-control mb-4"/> --}}
</div>
<div class="col-4">
<label>Tarikh Bil:</label>
</div>
<div class="col-8">
<input type="date" name="tarikhbil" class="form-control mb-4"/>
</div>
<div class="col-4">
<label>Deskripsi:</label>
</div>
<div class="col-8">
<textarea row="3" name="deskripsi" class="form-control mb-4"> </textarea>
</div>
<div class="col-4">
<label>Bayaran (RM):</label>
</div>
<div class="col-8">
<div class="row pl-3">
<input type="text" name="bayaran" readonly class="form-control col-8"/>
<button type="button" type="button" class="btn btn-primary ml-1 col-3" onclick="openupdeno();">Deno</button>
</div>
</div>
</div>
</div> </div>
<div class="modal-footer"> <div class="modal-footer">
<button type="button" class="btn btn-danger btn-lg" data-dismiss="modal">Batal</button> <button type="button" class="btn btn-danger" data-dismiss="modal">Batal</button>
<button type="submit" class="btn btn-success btn-lg">Terima</button> <button type="submit" class="btn btn-success">Terima</button>
</div> </div>
</form> </form>
</div> </div>
@@ -238,34 +362,57 @@
<div class="modal-dialog modal-dialog-centered" role="document"> <div class="modal-dialog modal-dialog-centered" role="document">
<div class="modal-content"> <div class="modal-content">
<div class="modal-header"> <div class="modal-header">
<h5 class="modal-title" id="exampleModalLongTitle">Pos</h5> <h5 class="modal-title" id="exampleModalLongTitle">Perbelanjaan Pos</h5>
<button type="button" class="close" data-dismiss="modal" aria-label="Close"> <button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">&times;</span> <span aria-hidden="true">&times;</span>
</button> </button>
</div> </div>
<form name="frmmodal" method="post" action="{{ route('khazanah.createpanjar') }}"> <form name="frmmodal" method="post" action="{{ route('khazanah.createpanjar') }}" onsubmit="return checkformpanjar();">
@csrf @csrf
<div class="modal-body text-center"> <div class="modal-body text-center">
<input type="hidden" name="jenismodal" value="pos"/> <input type="hidden" name="jenismodal" value="pos"/>
<label>Baucer No:</label>
<input type="text" name="baucer" class="form-control mb-4 baucer" readonly/>
<label>Tarikh:</label> <div class="row">
<input type="date" name="tarikh" class="form-control mb-4"/> <div class="col-4">
<label>Baucer No:</label>
<label>Tarikh Bil:</label> </div>
<input type="date" name="tarikhbil" class="form-control mb-4"/> <div class="col-8">
<input type="text" name="baucer" class="form-control mb-4 baucer" readonly/>
<label>Deskripsi Perubatan:</label> </div>
<input type="text" name="deskripsi" class="form-control mb-4"/> <div class="col-4">
<label>Tarikh:</label>
<label>Bayaran RM:</label> </div>
<input type="text" name="bayaran" class="form-control mb-4"/> <div class="col-8">
<input type="date" name="tarikh" class="form-control mb-4"/>
</div>
<div class="col-4">
<label>Tarikh Bil:</label>
</div>
<div class="col-8">
<input type="date" name="tarikhbil" class="form-control mb-4"/>
</div>
<div class="col-4">
<label>Deskripsi:</label>
</div>
<div class="col-8">
{{-- <input type="text" name="deskripsi" class="form-control mb-4"/> --}}
<textarea row="3" name="deskripsi" class="form-control mb-4"> </textarea>
</div>
<div class="col-4">
<label>Bayaran (RM):</label>
</div>
<div class="col-8">
<div class="row pl-3">
<input type="text" readonly name="bayaran" class="form-control col-8"/>
<button type="button" type="button" class="btn btn-primary ml-1 col-3" onclick="openupdeno();">Deno</button>
</div>
</div>
</div>
</div> </div>
<div class="modal-footer"> <div class="modal-footer">
<button type="button" class="btn btn-danger btn-lg" data-dismiss="modal">Batal</button> <button type="button" class="btn btn-danger" data-dismiss="modal">Batal</button>
<button type="submit" class="btn btn-success btn-lg">Terima</button> <button type="submit" class="btn btn-success">Terima</button>
</div> </div>
</form> </form>
</div> </div>