@extends('layouts.app', ['class' => 'g-sidenav-show bg-gray-100']) @section('content') @include('layouts.navbars.auth.topnav', ['title' => '']) @php $primary = ''; foreach ($table_primary as $p) { $primary == '' ? ($primary = $list->{$p->field}) : ($primary = $primary . ':' . $list->{$p->field}); } @endphp
@csrf @method('PUT')

Edit {{ $title_menu }}


@include('components.alert') {{-- ========== 1. GEDUNG ========== --}} @php $hGedung = $table_header->firstWhere('field', 'gedung'); @endphp @if ($hGedung)
@error('gedung') {{ $message }} @enderror
@endif {{-- ========== 2. AREA ========== --}} @php $hArea = $table_header->firstWhere('field', 'area'); @endphp @if ($hArea)
@if (($hArea->type ?? '') === 'enum' && $hArea->query != '') @else validate, 'required') ? 'required' : '' }}> @endif @error('area') {{ $message }} @enderror
@endif {{-- ========== 3. LOCATION ========== --}} @php $hLokasi = $table_header->firstWhere('field', 'location'); @endphp @if ($hLokasi)
@if (($hLokasi->type ?? '') === 'enum' && $hLokasi->query != '') @else validate, 'required') ? 'required' : '' }}> @endif @error('location') {{ $message }} @enderror
@endif
@endsection