chess/resources/views/content/ref/ModelingTask/form.blade.php
Ramadhon Ikhsan Prasetya 603e31b0f4 init
2024-08-29 10:56:32 +07:00

46 lines
2.0 KiB
PHP

@php
$mm = DB::table('master_model')->get();
$task = DB::table('ref_task')->get();
@endphp
<x-other.modal id="mForm" title="Tambah Data" subTitle="Tambah Data {{$title}}" info="" separator="false" size="md">
<x-slot name="action">
<button onclick="store()" type="button" class="btn btn-success font-weight-bold mr-2" id="znBtnLoader">Simpan</button>
</x-slot>
<x-slot name="content">
<form id="formData">
<input id="get_id" type="hidden" name="get_id" value="">
{{-- <input id="is_active" type="hidden" name="is_active" value=""> --}}
<div class="separator separator-dashed separator-border-1 mt-5 mb-5"></div>
<div class="card">
<div class="card-body">
<div class="row">
<div class="col-md-12">
<x-form.select title="Model" id="model_id">
<x-slot name="option">
@foreach ($mm as $jt)
<option value="{{ $jt->id }}">{{ $jt->description }}</option>
@endforeach
</x-slot>
</x-form.select>
</div>
<div class="col-md-12">
<x-form.select title="Task" id="task_id">
<x-slot name="option">
@foreach ($task as $item)
<option value="{{ $item->id }}">{{ $item->task_name }}</option>
@endforeach
</x-slot>
</x-form.select>
</div>
</div>
</div>
</div>
</form>
</x-slot>
</x-other.modal>