@extends('layouts/acc_layout') @section('title', '| Account Report Budget Particular') @section('content') @php // Check if the form is in view mode or edit mode $isViewMode = request()->has('view'); $isEditMode = request()->has('edit'); @endphp @include('partials/layout-assets')

{{ $isViewMode ? 'View Target & Achievement (TAR) Budget' : ($isEditMode ? 'Edit Target & Achievement (TAR) Budget' : 'Add New Target & Achievement (TAR) Budget') }}

{!! Form::open(['url' => '#', 'role' => 'form', 'class' => 'form-horizontal form-groups']) !!}
{!! Form::label('Branch', 'Branch:', ['class' => 'control-label branch-label']) !!} {!! Form::select('branchId', $branches, $selectedBranch, [ 'id' => 'branchId', 'class' => 'form-control select2', 'autocomplete' => 'off', 'autofocus', 'onchange' => 'existTarBudget()', 'disabled' => $isViewMode || $isEditMode ? 'disabled' : null, 'aria-hidden' => ($isViewMode || $isEditMode) ? 'true' : 'false', ]) !!} @if($isEditMode) @endif
{!! Form::label('Fiscal Year', 'Fiscal Year:', ['class' => 'control-label fiscal-year-label']) !!} {!! Form::select('fiscalYearId', $fiscalYears, $selectedFiscalYear, [ 'id' => 'fiscalYearId', 'class' => 'form-control select2', 'autocomplete' => 'off', 'autofocus', 'onchange' => 'existTarBudget()', 'disabled' => $isViewMode || $isEditMode ? 'disabled' : null ]) !!} @if($isEditMode) @endif
@if($isViewMode) {!! Form::label('Submit', 'Submit:', ['class' => 'control-label submit-label']) !!} Close @else {!! Form::label('Submit', 'Submit:', ['class' => 'control-label submit-label']) !!} {!! Form::submit($isEditMode ? 'Update' : 'Submit', ['class' => 'btn btn-info', 'id' => 'submit', 'style' => 'margin-top:0px !important;']) !!} @endif
{!! Form::close() !!}
@endsection