@extends('layouts.page') @section('title') (Non) Program Indents Edit Indent @endsection @section('navs') @endsection @section('content')
{!! Form::open(['url' => route('admin_indent.update', [$admin_indent->id])]) !!} @csrf {!! EasyForm::setErrors($errors) !!}
@if (Auth::user()->can('change', $admin_indent) || Auth::user()->can('edit', $admin_indent)) {!! EasyForm::select('entity',$admin_indent->label('entity'),old('entity', $admin_indent->entity),$entities) !!} {!! EasyForm::select('account',$admin_indent->label('account'),old('account', $admin_indent->account),AppHelper::options('admin_indent_accounts'))!!} @endif @if (Auth::user()->isAdmin() && !$admin_indent->isAutoGenerated()) {!! EasyForm::select('type',$admin_indent->label('type'),old('type', $admin_indent->type), AppHelper::options('admin_indent_types') + [$admin_indent->type => AppHelper::captalize($admin_indent->type)] ) !!} @endif @if (!empty($admin_indent->assigned_accountant) && (Auth::user()->isAdmin() || Auth::user()->hasAnyRole(['accounts_officer', 'hod__acc']))) {!! EasyForm::select('assigned_accountant', $admin_indent->label('assigned_accountant'), old('assigned_accountant', $admin_indent->assigned_accountant), UserHelper::getAccountants()) !!} @endif @if (Auth::user()->hasAnyRole(['am'])) {!! EasyForm::select('type', $admin_indent->label('type'), old('type', $admin_indent->type), AppHelper::options('admin_indent_types_am')) !!} {!! EasyForm::select('indent_department', $admin_indent->label('indent_department'), old('indent_department', $admin_indent->indent_department), AppHelper::options('program_departments')) !!} @endif
{!! EasyForm::submit('Submit') !!} {!! Form::close() !!}
@endsection