@extends('admin.layouts.master') @section('content')
{!! Form::open(array('route' => \App\Helpers\Helper::adminPrefix(). '.store', 'name' => 'user-form', 'id' => 'user-form', 'autocomplete' => 'off', 'files' => true)) !!}

{{ __('Create') }} {{ \App\Helpers\Helper::pagePrefix(2) }}

{!! Form::label('lang_id', 'Language :', ['class' => 'control-label']) !!} {!! Form::select('lang_id', \App\Helpers\Helper::language(false), old('lang_id'), ['class' => $errors->has('lang_id') ? 'form-control is-invalid' : 'form-control', 'id' => 'role_id']) !!} @if ($errors->has('lang_id')) {{ $errors->first('lang_id') }} @endif
{!! Form::label('title', 'Title :', ['class' => 'control-label']) !!} {!! Form::text('title', old('title'), ['class' => $errors->has('title') ? 'form-control is-invalid' : 'form-control', 'id' => 'title', 'placeholder' => 'Banner title']) !!} @if ($errors->has('title')) {{ $errors->first('title') }} @endif
{!! Form::label('status', 'Active :', ['class' => 'control-label']) !!}
{!! Form::radio('status', '1', old('status', true), ['id' => 'statuson']) !!} {!! Form::label('statuson', 'Yes') !!}
{!! Form::radio('status', '0', old('status', false), ['id' => 'statusoff']) !!} {!! Form::label('statusoff', 'No') !!}
{!! Form::label('file', 'File :', ['class' => 'control-label']) !!}
{!! Form::file('file', ['class' => $errors->has('file_src') ? 'custom-file-input is-invalid' : 'custom-file-input']) !!} {!! Form::label('file', 'Choose file', ['class' => 'custom-file-label']) !!} @if ($errors->has('file_src')) {{ $errors->first('file_src') }} @endif
{!! Form::label('preview', 'Preview :', ['class' => 'control-label']) !!} Thumbnail
{{ Form::hidden('file_src', old('file_src'), ['id' => 'file_src']) }} {!! Form::close() !!}
@endsection @section('script') @endsection