@extends('admin.layout.master') @section('admin')
{{ Breadcrumbs::render('admin.general.languages.insert') }}

{{trans('admin/general.languages.insert.title')}}

{{ html()->form()->method('POST')->class("form modulForm")->id("modulForm")->autocomplete("off")->attribute('enctype','multipart/form-data')->open() }}
@if($errors->any())
@foreach ($errors->all() as $error) {!! $error !!}
@endforeach
@endif
{{html()->label()->for("title")->html(trans("admin/general.languages.form.status")) }} {{html()->select()->options( $form['statuses'])->required(true)->value(1)->name("status")->class("form-control") }}
{{html()->label()->for("title")->html(trans("admin/general.languages.form.title")) }} {{html()->input()->id("title")->name("title")->required(true)->value(null)->class("form-control") }}
{{html()->label()->for("code")->html(trans("admin/general.languages.form.code")) }} {{html()->input()->id("code")->minlength(2)->name("code")->required(true)->value(null)->class("form-control") }}
{{html()->label()->for("description")->html(trans("admin/general.languages.form.description")) }} {{html()->input()->id("description")->name("description")->class("form-control") }}
{{html()->label()->for("image")->html(trans("admin/general.languages.form.image")) }} {{html()->file()->id("image")->name("image")->class("form-control") }} {{html()->span()->id("imageSpan")->html(trans("admin/general.languages.form.image_info",[ 'width'=>config('app.admin.language.image_width'), 'height'=>config('app.admin.language.image_height') ]))->style(['font-size'=>'12px']) }}
{{ html()->button()->type("submit")->class("btn btn-info btn-sm")->id("btnAction")->html(' '.trans("admin/general.languages.insert.form.action")) }}
{{ html()->form()->close() }}
@endsection @section('admin.javascript')