@extends('layouts.app', ['class' => 'g-sidenav-show bg-gray-100']) {{-- section content --}} @section('content') @include('layouts.navbars.auth.topnav', ['title' => '']) @if (($dmenu ?? '') == 'trdper' || ($url_menu ?? '') == 'daftar-periodic-hrd' || request()->is('daftar-periodic-hrd/add'))

Tambah Daftar Periodic HRD

Isi tahun dan keterangan untuk membuat jadwal periodic baru

@csrf
@error('tahun')

{{ $message }}

@enderror

*) Tahun untuk jadwal periodic

@error('keterangan')

{{ $message }}

@enderror

*) Deskripsi atau keterangan jadwal

@else
@csrf

Insert {{ $title_menu }}


{{-- retrieve table header --}} @foreach ($table_header as $header) @php $primary = false; $generateid = false; foreach ($table_primary as $p) { $primary == false ? ($p->field == $header->field ? ($primary = true) : ($primary = false)) : ''; $generateid == false ? ($p->generateid != '' ? ($generateid = true) : ($generateid = false)) : ''; } @endphp
{{-- display label alias on type field not hidden --}} @if ($header->type != 'hidden') @endif {{-- field type char and string --}} @if ($header->type == 'char' || $header->type == 'string') @if ($header->note != '')

{{ '*) ' . $header->note }}

@endif {{-- field type email --}} @elseif ($header->type == 'email') @if ($header->note != '')

{{ '*) ' . $header->note }}

@endif {{-- field type text --}} @elseif ($header->type == 'text') @if ($header->note != '')

{{ '*) ' . $header->note }}

@endif {{-- field type number --}} @elseif ($header->type == 'number') @if ($header->note != '')

{{ '*) ' . $header->note }}

@endif {{-- field type currency --}} @elseif ($header->type == 'currency') @if ($header->note != '')

{{ '*) ' . $header->note }}

@endif {{-- field type file --}} @elseif ($header->type == 'file') @php $isMultiAttachment = $header->field === 'attachment'; @endphp

Maksimal Size : {{ $header->length }} KB

@if ($header->note != '')

{{ $header->note }}

@else

Format File : pdf,xls,xlsx

@endif {{-- field type search --}} @elseif ($header->type == 'search')
@if ($header->note != '')

{{ '*) ' . $header->note }}

@endif {{-- field type image --}} @elseif ($header->type == 'image') @php $isMultiAttachmentImage = $header->field === 'attachment'; @endphp @if ($isMultiAttachmentImage)

Bisa pilih lebih dari 1 file.

@else
image
@endif

Maksimal Size : {{ $header->length }} KB

@if ($header->note != '')

{{ $header->note }}

@else

Format Image : PNG,JPG,JPEG

@endif @if (!$isMultiAttachmentImage) @endif {{-- field type password --}} @elseif ($header->type == 'password')

Default Password : {{ $header->default }}

{{-- field type date --}} @elseif ($header->type == 'date') @if ($header->note != '')

{{ '*) ' . $header->note }}

@endif {{-- field type hidden --}} @elseif ($header->type == 'hidden') {{-- field type enum --}} @elseif ($header->type == 'enum') {{-- {{ dd($wherekey[$header->field]) }} --}} @if (@$wherekey[$header->field])
{{ @$wherekey[$header->field] }} @endif @if ($header->sub != '') @endif @if (@$wherekey[$header->field]) @endif @if ($header->note != '')

{{ '*) ' . $header->note }}

@endif @endif @error($header->field)

{{ $message }}

@enderror
@endforeach

@endif {{-- check flag js on dmenu --}} @if ($jsmenu == '1') @if (view()->exists("js.{$dmenu}")) @push('addjs') {{-- file js in folder (resources/views/js) --}} @include('js.' . $dmenu); @endpush @else @push('addjs') @endpush @endif @endif @endsection @push('js') @endpush