Commit 2e15575a by Siti Aisah

hide poin saku master kategori

parent 625a5b77
......@@ -27,7 +27,7 @@ public function store(Request $request){
$rule = [
'kodekategori' => 'required|string',
'namakategori' => 'required|string',
'poinsaku' => 'required|string'
// 'poinsaku' => 'required|string'
];
$request->validate($rule, ValidationRule::getErrorMessage($rule));
......@@ -38,7 +38,7 @@ public function store(Request $request){
$kategori = [
'kode_kategori' => strip_tags($request->kodekategori),
'nama_kategori' => strip_tags($request->namakategori),
'poin_saku' => strip_tags($request->poinsaku),
// 'poin_saku' => strip_tags($request->poinsaku),
'status' => $request->status
];
......@@ -62,7 +62,7 @@ public function update(Request $request, $id){
$rule = [
'kodekategori' => 'required|string',
'namakategori' => 'required|string',
'poinsaku' => 'required|string'
// 'poinsaku' => 'required|string'
];
$request->validate($rule, ValidationRule::getErrorMessage($rule));
......@@ -75,7 +75,7 @@ public function update(Request $request, $id){
$kategori = [
'kode_kategori' => strip_tags($request->kodekategori),
'nama_kategori' => strip_tags($request->namakategori),
'poin_saku' => strip_tags($request->poinsaku),
// 'poin_saku' => strip_tags($request->poinsaku),
'status' => $request->status
];
......
......@@ -21,7 +21,7 @@
<th>No.</th>
<th>Kode Kategori</th>
<th>Nama Kategori</th>
<th>Poin SAKU</th>
{{-- <th>Poin SAKU</th> --}}
<th>Status</th>
<th>Aksi</th>
</tr>
......@@ -43,7 +43,7 @@
<td>{{ $no }}</td>
<td style="text-align: center">{{ $kat->kode_kategori }}</td>
<td>{{ $kat->nama_kategori }}</td>
<td>{{ $kat->poin_saku }}</td>
{{-- <td>{{ $kat->poin_saku }}</td> --}}
<td>{{ $status }}</td>
<td>
<button type="button" class="btn btn-primary btn-sm" data-bs-toggle="modal" data-bs-target="#editKategoriModal{{$kat->id}}">Edit</button>
......@@ -63,20 +63,20 @@
</div>
<div class="modal-body">
<div class="row">
<div class="col-md-6">
<div class="col-md-12">
<label class="form-label" for="kodekategori">Kode Kategori</label>
<input type="text" class="form-control" id="kodekategori" name="kodekategori" placeholder="Kode Kategori" data-msg="Masukkan Kode Kategori" value="{{$kat->kode_kategori}}" required />
@if ($errors->has('kodekategori'))
<label id="login-error" class="error" for="kodekategori" style="color: red">{{$errors->first('kodekategori')}}</label>
@endif
</div>
<div class="col-md-6">
{{-- <div class="col-md-6">
<label class="form-label" for="poinsaku">Poin Saku</label>
<input type="text" id="poinsaku" name="poinsaku" class="form-control" placeholder="Poin SAKU" data-msg="Masukkan Poin SAKU" value="{{$kat->poin_saku}}" required />
@if ($errors->has('poinsaku'))
<label id="login-error" class="error" for="poinsaku" style="color: red">{{$errors->first('poinsaku')}}</label>
@endif
</div>
</div> --}}
</div>
<div class="col-md-12">
<label class="form-label" for="namakategori">Nama Kategori</label>
......@@ -85,7 +85,6 @@
<label id="login-error" class="error" for="namakategori" style="color: red">{{$errors->first('namakategori')}}</label>
@endif
</div>
<hr>
<div class="col-md-12">
<label class="form-label" for="status">Status</label>
<select name="status" id="status" class="form-control">
......@@ -150,20 +149,20 @@
</div>
<div class="modal-body">
<div class="row">
<div class="col-md-6">
<div class="col-md-12">
<label class="form-label" for="kodekategori">Kode Kategori</label>
<input type="text" class="form-control" id="kodekategori" name="kodekategori" placeholder="Kode Kategori" data-msg="Masukkan Kode Kategori" value="" required />
@if ($errors->has('kodekategori'))
<label id="login-error" class="error" for="kodekategori" style="color: red">{{$errors->first('kodekategori')}}</label>
@endif
</div>
<div class="col-md-6">
{{-- <div class="col-md-6">
<label class="form-label" for="poinsaku">Poin Saku</label>
<input type="text" id="poinsaku" name="poinsaku" class="form-control" placeholder="Poin SAKU" data-msg="Masukkan Poin SAKU" required />
@if ($errors->has('poinsaku'))
<label id="login-error" class="error" for="poinsaku" style="color: red">{{$errors->first('poinsaku')}}</label>
@endif
</div>
</div> --}}
</div>
<div class="col-md-12">
<label class="form-label" for="namakategori">Nama Kategori</label>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment