update
parent
6c4f89f662
commit
3e03e97e94
|
|
@ -4,6 +4,33 @@
|
||||||
|
|
||||||
@section('content')
|
@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"
|
<div class="modal fade" id="formModalEdit" tabindex="-1" role="dialog" aria-labelledby="formModalLabel"
|
||||||
aria-hidden="true">
|
aria-hidden="true">
|
||||||
<div class="modal-dialog modal-lg" role="document" style="width:90%; max-width: 90%;">
|
<div class="modal-dialog modal-lg" role="document" style="width:90%; max-width: 90%;">
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue