main
Ilham Wara Nugroho 2026-06-17 13:42:27 +07:00
parent 6c4f89f662
commit 3e03e97e94
1 changed files with 27 additions and 0 deletions

View File

@ -4,6 +4,33 @@
@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('modules.form.import', $param);
$routeExport = route('modules.form.export', $param);
$routeExportTemplate = route('modules.form.export', array_merge($param, ['isTemplate' => true]));
$routeApproval = route('modules.form.approval', $param);
$internal = $internal ?? null;
$limitInternal = ($internal !== null) && !$agencies->isNotEmpty();
@endphp
<div class="modal fade" id="formModalEdit" tabindex="-1" role="dialog" aria-labelledby="formModalLabel"
aria-hidden="true">
<div class="modal-dialog modal-lg" role="document" style="width:90%; max-width: 90%;">