@if(checkRole(['owner']))
{{ Form::label('branch_id', getphrase('branch')) }} * {{Form::select('branch_id', $branches, null, ['class'=>'form-control','onChange'=>'getLmsCategories()', 'id'=>'branch_id', 'ng-model'=>'branch_id', 'required'=> 'true', 'ng-class'=>'{"has-error": formLms.branch_id.$touched && formLms.branch_id.$invalid}' ])}}
{!! getValidationMessage()!!}
@else {{ Form::hidden('branch_id', getUserRecord()->branch_id, array('id'=>'branch_id')) }} @endif
{{ Form::label('title', getphrase('title')) }} * {{ Form::text('title', $value = null , $attributes = array('class'=>'form-control', 'placeholder' => getPhrase('series_title'), 'ng-model'=>'title', 'id'=>'title' , 'ng-pattern'=>getRegexPattern('name'), 'required'=> 'true', 'ng-class'=>'{"has-error": formLms.title.$touched && formLms.title.$invalid}', 'ng-minlength' => '2', 'ng-maxlength' => '60', )) }}
{!! getValidationMessage()!!} {!! getValidationMessage('pattern')!!} {!! getValidationMessage('minlength')!!} {!! getValidationMessage('maxlength')!!}
{{ Form::label('lms_category_id', 'LMS Category') }} * {{Form::select('lms_category_id', $categories, null, ['class'=>'form-control', 'ng-model'=>'lms_category_id', 'id'=>'lms_category_id' , 'required'=> 'true', 'ng-class'=>'{"has-error": formLms.lms_category_id.$touched && formLms.lms_category_id.$invalid}', ]) }}
{!! getValidationMessage()!!}
{{ Form::label('is_paid', getphrase('is_paid')) }} * {{Form::select('is_paid', $payment_options, null, ['class'=>'form-control', 'ng-model'=>'is_paid', 'id'=>'is_paid' , 'required'=> 'true', 'ng-class'=>'{"has-error": formLms.is_paid.$touched && formLms.is_paid.$invalid}', ]) }}
{!! getValidationMessage()!!}
{{ Form::label('validity', getphrase('validity')) }} * {{ Form::text('validity', $value = null , $attributes = array('class'=>'form-control', 'placeholder' => getPhrase('validity_in_days'), 'ng-model'=>'validity', 'min' =>'-1', 'required'=> 'true', 'id'=>'validity' , 'ng-class'=>'{"has-error": formLms.validity.$touched && formLms.validity.$invalid}', )) }}
{!! getValidationMessage()!!} {!! getValidationMessage('number')!!}
{{ Form::label('cost', getphrase('cost')) }} * {{ Form::text('cost', $value = null , $attributes = array('class'=>'form-control', 'placeholder' => '40', 'min'=>'0', 'ng-model'=>'cost', 'id'=>'cost' , 'required'=> 'true', 'ng-class'=>'{"has-error": formLms.cost.$touched && formLms.cost.$invalid}', )) }}
{!! getValidationMessage()!!} {!! getValidationMessage('number')!!}
{{ Form::label('total_items', getphrase('total_items')) }} * {{ Form::text('total_items', $value = null , $attributes = array('class'=>'form-control','readonly'=>'true' ,'placeholder' => getPhrase('It will be updated by adding the LMS items'))) }}
{{ Form::label('image', getphrase('image')) }}
{!! getValidationMessage('image')!!}
@if($record) @if($record->image)