48 lines
2.5 KiB
PHP
48 lines
2.5 KiB
PHP
@php
|
|
$task = DB::table('ref_task')->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="lg">
|
|
<x-slot name="action">
|
|
<button onclick="storeCustom()" 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-6">
|
|
<x-form.input title="Nama Model" id="description" value="" />
|
|
</div>
|
|
<div class="col-md-6">
|
|
<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 class="col-md-12 justify-content-center">
|
|
<div class="form-group">
|
|
<label for="">Modelling Task</label>
|
|
<select id="kt_dual_listbox_1" name="modelingTask[]" class="dual-listbox" data-available-title="Daftar Task" data-selected-title="Pilihan Task" data-add="Tambah" data-remove="Hapus" data-add-all="Tambah Semua" data-remove-all="Hapus Semua" multiple>
|
|
@if(count($task)>0)
|
|
@foreach ($task as $t)
|
|
<option value="{{ $t->id }}">{{ $t->task_name }}</option>
|
|
@endforeach
|
|
@endif
|
|
</select>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</form>
|
|
</x-slot>
|
|
</x-other.modal>
|
|
|
|
|