You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// docs : https://github.com/CodeSeven/toastr*****YouhaveToputalertinscriptssection// @yield('scripts')*****// Display a warning toast, with no titletoastr.warning('My name is Inigo Montoya. You killed my father, prepare to die!')// Display a success toast, with a titletoastr.success('Have fun storming the castle!','Miracle Max Says')// Display an error toast, with a titletoastr.error('I do not think that word means what you think it means.','Inconceivable!')// Immediately remove current toasts without using animationtoastr.remove()// Remove current toasts using animationtoastr.clear()// Override global optionstoastr.success('We do have the Kapua suite available.','Turtle Bay Resort',{timeOut: 5000})
Notification to [ 'dashboard' , 'email' ]
(new \MainHelper)->notify_user(['user_id'=>2,'message'=>"محتوى الإشعار",'url'=>"http://example.com",'methods'=>['database','mail']]);
# You have to use this code inside @section('scripts')#for single upload
@include('admin.templates.dropzone',[
'selector'=>'#file-uploader-nafezly-main',
'url'=> route('admin.upload.file'),
'method'=>'POST',
'remove_url'=>route('admin.upload.remove-file'),
'remove_method'=>'POST',
'enable_selector_after_upload'=>'#submitEvaluation',
'max_files'=>1,
'max_file_size'=>'50',
'accepted_files'=>"['image/*']"
])
#for multiplue uploads
@include('admin.templates.dropzone',[
'selector'=>'#file-uploader-nafezly-second','url'=> route('admin.upload.file'),
'method'=>'POST',
'remove_url'=>route('admin.upload.remove-file'),
'remove_method'=>'POST',
'enable_selector_after_upload'=>'#submitEvaluation','max_files'=>100,
'max_file_size'=>'50',
'accepted_files'=>"['image/*']"
])
/* You have To import this code inside *//*for single upload*/<divclass="col-12 px-0 mt-2 px-0"><divclass="col-12 mt-2"style="overflow: hidden"><divclass="col-12 px-0"id="file-uploader-nafezly-main"><inputtype="hidden"disabledclass="file-uploader-uploaded-files"><inputname="attachment"type="file"multipleclass="file-uploader-files"data-fileuploader-files=""style="opacity: 0"/>
<!--
# for rendering old uploaded files
<inputname="attachment"type="file"multipleclass="file-uploader-files"data-fileuploader-files='@include('site-templates.uploaded-files-array',['files'=>$item->uploaded_files()])' style="opacity: 0" />
# uploaded_files=>isalaravelcollection--></div></div></div>
/*for multiple uploads*/
<divclass="col-12 px-0 mt-2 px-0"><divclass="col-12 mt-2"style="overflow: hidden"><divclass="col-12 px-0"id="file-uploader-nafezly-second"><inputtype="hidden"disabledclass="file-uploader-uploaded-files"><inputname="attachment"type="file"multipleclass="file-uploader-files"data-fileuploader-files=""style="opacity: 0"/>
<!--
# for rendering old uploaded files
<inputname="attachment"type="file"multipleclass="file-uploader-files"data-fileuploader-files='@include('site-templates.uploaded-files-array',['files'=>$item->uploaded_files()])' style="opacity: 0" />
# uploaded_files=>isalaravelcollection--></div></div></div>
Fancybox
/* Just Add this Tag To image */<imgsrc=""data-fancybox/>/* Every image inside this class "data-fancybox" will be converted to fancy */<divclass="fancybox"><imgsrc=""/></div>
/* just add this id to form like this */<formid="validate-form"></form>/*or add this code to the end of the page */<formid="custom-validation"></form>
@section('content')
<scripttype="text/javascript">
$("#custom-validation").validate();
</script>
@endsection