@extends('layouts.dashboard.main') {{-- content --}} @section('content') {!! Form::open($form) !!} {!! Form::hidden('foreigner_coe[dtb_foreigner_coe_id]', $dtb_foreigner_coe_id) !!} {!! Form::hidden('foreigner_coe[dtb_staff_id]', $staff['dtb_staff_id']) !!} {!! Form::hidden('staff_code', $staff['staff_code']) !!}
{!! Form::select("foreigner_coe[mtb_coe_id]", $coe_list, (isset($foreigner_coe)) ? $foreigner_coe['mtb_coe_id'] : '', [ 'class' => 'form-select', ]) !!}
{!! Form::date("foreigner_coe[date_issue]", (isset($foreigner_coe)) ? $foreigner_coe['date_issue'] : '', [ 'class' => 'form-control', ]) !!}
{!! Form::date("foreigner_coe[date_expiry]", (isset($foreigner_coe)) ? $foreigner_coe['date_expiry'] : '', [ 'class' => 'form-control', ]) !!}
{!! Form::file("foreigner_coe[file_front]", [ 'class' => 'form-control', ]) !!}
{!! Form::file("foreigner_coe[file_back]", [ 'class' => 'form-control', ]) !!}
@for($i = 0; $i <= 1; $i++) {!! Form::radio('foreigner_coe[is_current]', $i, (isset($foreigner_coe)) ? (($i == $foreigner_coe['is_current']) ? true : false) : (($i == 0) ? true : false), [ 'class' => 'btn-check', 'id' => "is_current{$i}", ]) !!} @endfor
@for($i = 0; $i <= 1; $i++) {!! Form::radio('foreigner_coe[is_issue]', $i, (isset($foreigner_coe)) ? (($i == $foreigner_coe['is_issue']) ? true : false) : (($i == 0) ? true : false), [ 'class' => 'btn-check', 'id' => "is_issue{$i}", ]) !!} @endfor
{!! Form::textarea("foreigner_coe[remark]", (isset($foreigner_coe)) ? $foreigner_coe['remark'] : '', [ 'class' => 'form-control', 'rows' => 4, ]) !!}
{!! __("lang.button.back") !!}
{!! Form::close() !!} @endsection {{-- css --}} @section('css') @stop {{-- js --}} @section('js') @stop