@if(isset($editData))
@lang('common.edit')
@else
@endif
@lang('lang.upload_content')
@if(isset($editData))
{{ Form::open(['class' => 'form-horizontal', 'files' => true, 'route' => 'update-upload-content',@$editData->id, 'method' => 'POST', 'enctype' => 'multipart/form-data']) }}
@else
@if(userPermission(89))
{{ Form::open(['class' => 'form-horizontal', 'files' => true, 'route' => 'save-upload-content', 'method' => 'POST', 'enctype' => 'multipart/form-data']) }}
@endif
@endif
@if ($errors->has('content_type'))
{{ $errors->first('content_type') }}
@endif
@if ($errors->has('available_for'))
{{ $errors->first('available_for') }}
@endif
@if ($errors->has('class'))
{{ $errors->first('class') }}
@endif
@if ($errors->has('subject'))
{{ $errors->first('subject') }}
@endif
@if ($errors->has('lesson'))
{{ $errors->first('lesson') }}
@endif
@if ($errors->has('description'))
{{ $errors->first('description') }}
@endif
@if ($errors->has('group'))
{{ $errors->first('group') }}
@endif
@if(!isset($editData))
@endif
@if(!isset($editData))
@endif
@php
$tooltip = "";
if(userPermission(89) ){
@$tooltip = "";
}else{
@$tooltip = "You have no permission to add";
}
@endphp