@extends('layouts.page') @section('title') (Non) Program Indent Create New @endsection @section('navs') @endsection @section('content')
{!! Form::open(['url' => route('admin_indent.save', $type)]) !!} @csrf {!! EasyForm::setErrors($errors) !!} {!! EasyForm::setColSizes(2, 10) !!} {!! EasyForm::select('nature', $admin_indent->label('nature'), old('nature', ''), AppHelper::options('admin_indent_natures')) !!} {!! EasyForm::select('entity', $admin_indent->label('entity'), old('entity', ''), $entities) !!} @if (Auth::user()->isAdmin() || Auth::user()->hasAnyDepartment(['acc'])) {!! EasyForm::select('type', $admin_indent->label('type'), old('type', ''), AppHelper::options('admin_indent_types')) !!} @endif @if (Auth::user()->hasAnyRole(['am'])) {!! EasyForm::select('type', $admin_indent->label('type'), old('type', ''), AppHelper::options('admin_indent_types_am')) !!} {!! EasyForm::select('indent_department', $admin_indent->label('indent_department'), old('indent_department', ''), AppHelper::options('program_departments')) !!} @endif {!! EasyForm::submit('Create New Indent') !!} {!! Form::close() !!}
@endsection