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

47 lines
2.2 KiB
PHP

@php
$jenisTask = DB::table('ref_task_type')->where('company_id', Auth::user()->company_id)->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.input title="Jenis Task" id="task_name" value="" />
</div>
<div class="col-md-12">
<x-form.select title="Jenis Task" id="task_type_id">
<x-slot name="option">
@foreach ($jenisTask as $jt)
<option value="{{ $jt->id }}">{{ $jt->definition }}</option>
@endforeach
</x-slot>
</x-form.select>
</div>
<div class="col-md-12">
<x-form.select title="Status Aktif" id="is_active">
<x-slot name="option">
<option value="true">Ya</option>
<option value="false">Tidak</option>
</x-slot>
</x-form.select>
</div>
</div>
</div>
</div>
</form>
</x-slot>
</x-other.modal>