@extends('layouts.master', [ 'title' => 'Edit Visitor - ' . $visitor->name, 'icon_back' => true, 'url' => route('gate-in.visitor'), ]) @push('meta') @endpush @push("styles") @endpush @section('content')
@role('dokter') {{-- MCU Form for Dokter Role --}} @include('components.form.form-mcu-dokter-visitor') @else
@lang('app.informasi_visitor')
@include('components.input.form-input', [ 'label' => __('app.name'), 'mandatory' => true, 'name' => 'name', 'value' => $visitor->name, 'placeholder' => __('app.masukkan_field', ['field' => 'name']), ])
@php $gender = ['Male', 'Female']; @endphp @include('components.input.form-select', [ 'label' => __('app.gender'), 'options' => $gender, 'mandatory' => true, 'name' => 'gender', 'placeholder' => __('app.select_field', ['field' => 'gender']), 'arr_type' => 'linear', 'selected' => $visitor->gender, ])
@php $blood = ['A', 'AB', 'B', 'O']; @endphp @include('components.input.form-select', [ 'label' => __('app.blood_type'), 'options' => $blood, 'mandatory' => true, 'name' => 'blood_type', 'placeholder' => __('app.select_field', ['field' => 'blood type']), 'arr_type' => 'linear', 'selected' => $visitor->blood_type, ])
@include('components.input.form-input', [ 'label' => __('app.birth_place'), 'mandatory' => true, 'name' => 'birth_place', 'placeholder' => __('app.masukkan_field', ['field' => 'birth place']), 'value' => $visitor->birth_place, ])
@include('components.input.form-date', [ 'label' => __('app.birth_date'), 'name' => 'birth_date', 'mandatory' => true, 'placeholder' => __('app.select_field', ['field' => 'birth date']), 'value' => $visitor->birth_date, ])
@include('components.input.form-input', [ 'label' => __('app.phone_number'), 'mandatory' => true, 'name' => 'phone_number', 'placeholder' => __('app.masukkan_field', ['field' => 'phone number']), 'value' => $visitor->phone_number, ])
@include('components.input.form-input', [ 'label' => 'Email (Optional)', 'mandatory' => false, 'name' => 'email', 'placeholder' => __('app.masukkan_field', ['field' => 'email']), 'value' => $visitor->email, ])
@include('components.input.form-select', [ 'label' => __('app.nationality'), 'options' => $countries, 'mandatory' => true, 'name' => 'nationality', 'placeholder' => __('app.select_field', ['field' => 'nationality']), 'arr_type' => 'assoc', 'value_type' => 'string', 'selected' => $visitor->nationality, ])
@include('components.input.form-textarea', [ 'label' => __('app.address'), 'mandatory' => true, 'name' => 'address', 'placeholder' => __('app.masukkan_field', ['field' => 'address']), 'value' => $visitor->address, ])
@include('components.input.form-input', [ 'label' => __('app.company'), 'mandatory' => true, 'name' => 'company', 'placeholder' => __('app.masukkan_field', ['field' => 'company']), 'value' => $visitor->company, ])
@include('components.input.form-input', [ 'label' => 'Sponsor (email)', 'input_type' => 'email', 'mandatory' => true, 'name' => 'sponsor', 'placeholder' => __('app.masukkan_field', ['field' => 'sponsor']), 'value' => $visitor->sponsor, ])
{{--
--}}
@include('components.form.form-upload-file', [ 'id' => 'pas_photo', 'folder' => 'pas-photo', 'file' => $visitor->pas_photo, ])
@include('components.form.form-upload-file', [ 'id' => 'health_certificate', 'folder' => 'health-certificate', 'file' => $visitor->health_certificate, ])
@include('components.button.card-button-submit', [ 'form_id' => 'form_gate_edit_visitor', 'btn_submit_id' => 'btn_submit_edit_visitor', 'url_back' => route('gate-in.visitor'), ])
@endrole
@endsection @push('scripts') @endpush