@php $lang = Session::get('language'); @endphp @extends('layouts.main') @section('title') {{ __('Languages') }} @endsection @section('page-title')

@yield('title')

@endsection @section('content')

{{ __('Add Language') }}

{!! Form::open(['url' => route('language.store'), 'files' => true, 'data-parsley-validate']) !!}
{{-- Language Name --}}
{{ Form::label('Language Name', __('Language Name'), [ 'class' => 'form-label text-center', ]) }} {{ Form::text('name', '', [ 'class' => 'form-control', 'placeholder' => trans('Language Name'), 'data-parsley-required' => 'true', ]) }}
{{-- Language Code --}}
{{ Form::label('Language Code', __('Language Code'), [ 'class' => 'form-label text-center', ]) }} {{ Form::text('code', '', [ 'class' => 'form-control', 'placeholder' => trans('Language Code'), 'data-parsley-required' => 'true', ]) }} {{ __("Only Small English Characters, Numbers And Hypens Allowed") }}
{{-- RTL --}}
{{ Form::label('file', __('RTL'), ['class' => 'col-form-label text-center']) }}
{{ Form::checkbox('rtl', 'true', false, ['class' => 'form-check-input']) }}
{{-- Super Admin EN Json File --}}
{{ Form::label('file', trans('Sample for Admin'), [ 'class' => 'col-form-label text-center', ]) }}
{{-- App EN Json File --}}
{{ Form::label('file', trans('Sample For App'), ['class' => 'col-form-label text-center']) }}
{{-- Web EN Json File --}}
{{ Form::label('file', trans('Sample For Web'), ['class' => 'col-form-label text-center']) }}
{{ Form::label('file', __('File For Admin Panel'), [ 'class' => 'form-label text-center', 'accept' => '.json.*', ]) }} {{ Form::file('file_for_panel', [ 'class' => 'form-control', 'language code', 'data-parsley-required' => 'true', 'accept' => '.json', 'id' => 'admin_file', ]) }}
{{ Form::label('file', __('File For App'), ['class' => 'form-label text-center', 'accept' => '.json.*']) }} {{ Form::file('file', ['class' => 'form-control', 'data-parsley-required' => 'true', 'accept' => '.json', 'id' => 'app_file']) }}
{{ Form::label('file', __('File For Web'), ['class' => 'form-label text-center', 'accept' => '.json.*']) }} {{ Form::file('file_for_web', [ 'class' => 'form-control', 'data-parsley-required' => 'true', 'accept' => '.json', 'id' => 'web_file', ]) }}
{{ Form::submit(__('Save'), ['class' => 'btn btn-primary me-1 mb-1']) }}
{!! Form::close() !!}
{{ __('ID') }} {{ __('Name') }} {{ __('Code') }} {{ __('Is RTL') }} {{ __('Action') }}
@endsection @section('script') @endsection