41 lines
2.0 KiB
PHP
41 lines
2.0 KiB
PHP
<!-- Modal -->
|
|
<div class="modal fade" id="editKloterModal" tabindex="-1" aria-labelledby="editKloterModalLabel" aria-hidden="true">
|
|
<div class="modal-dialog">
|
|
<div class="modal-content">
|
|
<div class="modal-header">
|
|
<h5 class="modal-title" id="editKloterModalLabel">Edit Kloter</h5>
|
|
<button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Tutup"></button>
|
|
</div>
|
|
<div class="modal-body">
|
|
|
|
<!-- Form Buat Kloter Baru -->
|
|
{{-- <form method="GET" class="mb-3" action="">
|
|
<input type="hidden" name="buat_kloter" value="1">
|
|
<button class="btn btn-success w-100 mb-3">+ Buat Kloter Baru</button>
|
|
</form> --}}
|
|
|
|
<!-- Form Simpan Ton Ikan -->
|
|
<form method="POST" action="{{ route('presensi.tonikan.store') }}">
|
|
@csrf
|
|
<input type="hidden" name="kloter_id" value="{{ $selectedKloter->id }}">
|
|
|
|
<div class="mb-3">
|
|
<label for="jumlah_ton">Jumlah Ton Ikan (Kloter {{ $selectedKloter->nama_kloter }})</label>
|
|
<input type="number" name="jumlah_ton" class="form-control" id="jumlah_ton"
|
|
value="{{ old('jumlah_ton', $selectedKloter->tonIkan->jumlah_ton ?? 0) }}" required>
|
|
</div>
|
|
|
|
<div class="mb-3">
|
|
<label for="harga_ikan_per_ton">Harga Ikan Per Ton (Rp)</label>
|
|
<input type="number" name="harga_ikan_per_ton" class="form-control" id="harga_ikan_per_ton"
|
|
value="{{ old('harga_ikan_per_ton', $selectedKloter->tonIkan->harga_ikan_per_ton ?? 1000000) }}" required>
|
|
</div>
|
|
|
|
<button type="submit" class="btn btn-primary w-100">Simpan Data Ton Ikan</button>
|
|
</form>
|
|
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|