24 lines
922 B
PHP
24 lines
922 B
PHP
@if ($isLocked)
|
|
<!-- Unlock Form -->
|
|
<form id="unlock-form"
|
|
action="{{ route('form.unlock', ['sector' => $form->sector, 'code' => $form->code, 'id' => $activityForm->id ?? '#']) }}"
|
|
method="POST" class="d-inline">
|
|
@csrf
|
|
<button type="button" class="btn btn-warning mb-2 mb-md-0" {{ !$activityForm ? 'disabled' : '' }}
|
|
onclick="confirmUnlock()">
|
|
<i class="ti ti-lock"></i>
|
|
</button>
|
|
</form>
|
|
@else
|
|
<!-- Lock Form -->
|
|
<form id="lock-form"
|
|
action="{{ route('form.lock', ['sector' => $form->sector, 'code' => $form->code, 'id' => $activityForm->id ?? '#']) }}"
|
|
method="POST" class="d-inline">
|
|
@csrf
|
|
<button type="button" class="btn btn-danger mb-2 mb-md-0" {{ !$activityForm ? 'disabled' : '' }}
|
|
onclick="confirmLock()">
|
|
<i class="ti ti-unlock"></i>
|
|
</button>
|
|
</form>
|
|
@endif
|