// 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"><inputname="file"type="file"multipleclass="file-uploader-files"data-fileuploader-files=""style="opacity: 0"data-fileuploader-listInput="fileuploader-list-file-main"/></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"name="uploaded_files"value=""class="file-uploader-uploaded-files"><inputname="file"type="file"multipleclass="file-uploader-files"data-fileuploader-files=""style="opacity: 0"/></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
Controlling Accessibility To files Viewer
# controlling Accessibility To files Viewer$files = \App\Models\HubFile::where(function($q){
//conditions here
})->orderBy('id','DESC')->simplePaginate(24);
return view('livewire.files-viewer',compact('files'));