@extends('layouts.app') @php if($action == 'create'){ $form_action = route($parentRouteName.'.store'); $createItemName = __('lang.create') ." " .$moduleName; $breadcrumbCurrentName = __('lang.create'); $submit_button_text = __('lang.save'); $effect = 'Add'; } else if($action == 'edit'){ $form_action = route($parentRouteName.'.update',$allowance->id); $createItemName = __('lang.edit') ." " . $moduleName; $breadcrumbCurrentName = __('lang.edit'); $submit_button_text = __('lang.update'); $effect = $allowance->effect; } $breadcrumbCurrentIcon = "add_box"; @endphp @section('title') {{ $moduleName }}->{{ $createItemName }} @stop @section('top-bar') @include('includes.top-bar') @stop @section('left-sidebar') @include('includes.left-sidebar') @stop @section('content')
@include('admin.partials.breadcrumbs')

{{ $createItemName }}


@csrf
@include('layouts.components.input_field', [ 'col' => 6, 'name' => 'name', 'label' => __('lang.name'), 'focused' => true, 'value' => $allowance->name, 'labelClass' => 'required', 'autofocus' => true, ]) @include('layouts.components.select_field', [ 'col' => 6, 'name' => 'effect', 'default_option'=> __('lang.select_effect'), 'label' => __('lang.effect'), 'selectedValue' => $effect, 'labelClass' => 'required', 'options' => [ ['id' => 'Add', 'name' => 'Add'], ['id' => 'Less', 'name' => 'Subtract'], ], ])
{{__('lang.back')}}
@stop @push('include-css') @endpush @push('include-js') @endpush