@extends('layouts.main') @section('title') {{ __('Facility') }} @endsection @section('page-title')

@yield('title')

@endsection @section('content')

{{ __('Create Facility') }}

{!! Form::open(['url' => route('parameters.store'), 'data-parsley-validate', 'files' => true, 'class' => 'create-form','data-pre-submit-function','data-success-function'=> "formSuccessFunction"]) !!} @csrf
{{-- Facility Name --}}
{{ Form::label('type', __('Facility Name'), ['class' => 'form-label text-center']) }} {{ Form::text('parameter', '', ['class' => 'form-control', 'placeholder' => trans('Facility Name'), 'data-parsley-required' => 'true']) }}
{{-- Type --}}
{{ Form::label('type', __('Type'), ['class' => 'form-label text-center']) }}
{{-- Image --}}
{{ Form::label('image', __('Image'), ['class' => ' form-label text-center']) }} {{ Form::file('image', ['class' => 'form-control', 'data-parsley-required' => 'true', 'accept' => '.svg']) }}
{{-- Is Required --}}
{{ Form::label('is_required', __('Is Required ?'), ['class' => 'col-form-label text-center']) }}
{{ Form::checkbox('is_required', '1', false, ['class' => 'form-check-input', 'id' => 'is-required']) }}
{{-- Options --}}
{{ Form::submit(__('Save'), ['class' => 'btn btn-primary me-1 mb-1', 'id' => 'btn_submit']) }}
{!! Form::close() !!}
@if (has_permissions('read', 'facility'))
@if (has_permissions('update', 'facility')) @endif
{{ __('ID') }} {{ __('Name') }} {{ __('Image') }} {{ __('Type') }} {{ __('Is Required ?') }} {{ __('Value') }}{{ __('Action') }}
@endif @endsection @section('script') @endsection