@extends('layouts.master') @section('title', $form->name) @section('content') @php $user = Auth::user(); $scope = $user->getScope(); $inventoryYear = request('inventoryYear') ?? date('Y'); $instansi = request('instansi') ?? null; if ($agencies->count() === 1 && $scope === \App\Enums\LingkupAksesData::INTERNAL->value) { $instansi = $agencies[0]->name; } $param = [ 'sector' => $form->sector, 'code' => $form->code, 'inventoryYear' => $inventoryYear, 'instansi' => $instansi, ]; $routeImport = route('form.import', $param); $routeExport = route('form.export', $param); $routeExportTemplate = route('form.export', array_merge($param, ['isTemplate' => true])); $routeApproval = route('form.approval', $param); $internal = $internal ?? null; $limitInternal = ($internal !== null) && !$agencies->isNotEmpty(); @endphp
{{ $form->name }}
@if ($errors->has('error'))
{{ $errors->first('error') }}
@endif @if (session('success'))
{{ session('success') }}
@endif @include('form.action') @include('form.table') {{-- @include('form.copy') --}}
@include('form.import') @if ($instansi !== 'all') @include('form.aktivitas-user') @include('form.metadata.index') @endif @endsection @include('form.scripts')