@extends('layouts.dashboard.main') {{-- content --}} @section('content') {!! Form::open($form) !!} {!! Form::hidden('foreigner_vacation[dtb_foreigner_vacation_id]', $dtb_foreigner_vacation_id) !!} {!! Form::hidden('foreigner_vacation[dtb_staff_id]', $staff['dtb_staff_id']) !!} {!! Form::hidden('staff_code', $staff['staff_code']) !!}
{{-- japanese college --}} @if($staff['mtb_kaigo_id'] == 0)
{!! Form::select("foreigner_vacation[mtb_japanese_id]", $japanese_list, $staff['mtb_japanese_id'], [ 'class' => 'form-select', ]) !!}
{{-- kaigo college --}} @else
{!! Form::select("foreigner_vacation[mtb_kaigo_id]", $kaigo_list, $staff['mtb_kaigo_id'], [ 'class' => 'form-select', ]) !!}
@endif
{!! Form::select("foreigner_vacation[mtb_vacation_id]", $vacation_list, (isset($foreigner_vacation)) ? $foreigner_vacation['mtb_vacation_id'] : '', [ 'class' => 'form-select', ]) !!}
{!! Form::date("foreigner_vacation[from]", (isset($foreigner_vacation)) ? $foreigner_vacation['from'] : '', [ 'class' => 'form-control', ]) !!}
{!! Form::date("foreigner_vacation[to]", (isset($foreigner_vacation)) ? $foreigner_vacation['to'] : '', [ 'class' => 'form-control', ]) !!}
{!! Form::textarea("foreigner_vacation[remark]", (isset($foreigner_vacation)) ? $foreigner_vacation['remark'] : '', [ 'class' => 'form-control', 'rows' => 4, ]) !!}
{!! __("lang.button.back") !!}
{!! Form::close() !!} @endsection {{-- css --}} @section('css') @stop {{-- js --}} @section('js') @stop