Select an action Admin Profile Logout document.getElementById('actionSelect').addEventListener('change', function() { const selectedValue = this.value; if (selectedValue === 'logout') { // Create a form for logging out const logoutForm = document.createElement('form'); logoutForm.method = 'POST'; logoutForm.action = '{{ route('logout') }}'; const csrfInput = document.createElement('input'); csrfInput.type = 'hidden'; csrfInput.name = '_token'; csrfInput.value = '{{ csrf_token() }}'; logoutForm.appendChild(csrfInput); document.body.appendChild(logoutForm); logoutForm.submit(); } else if (selectedValue) { window.location.href = selectedValue; } }); separate js from this code make new js on assets call him form.js and put a link on scripts.blade.js and the form put in the header do not forget to build that links dashboard.blade.php and logout.blade.php
Lesson5:ruclips.net/video/7PSd9uM_JgA/видео.html
Thank you very much, your videos help me a lot
What could have happened? After adding 'admin' in front of the assets. It didn't work
5:30
you probably put admin/assest in index.html. you should put it in home.blade.php
clear cut explanation, thank you
This is working perfectly especially if one followed the hospital project. Thanks and kudos bro
very gd tutorial. Respect u.
There is a problem in the admin button like there is a white background coming to the admin button, anysolution??
Good tutorial. Keep it up. However, on the small screens, the sidebar doesn't show. How do I do that so the sidebar should be mobile Responsive.
Sir, why does everything works fine in your system but does not work in our system. I am talking about the admin dropdown in header
Select an action
Admin
Profile
Logout
document.getElementById('actionSelect').addEventListener('change', function() {
const selectedValue = this.value;
if (selectedValue === 'logout') {
// Create a form for logging out
const logoutForm = document.createElement('form');
logoutForm.method = 'POST';
logoutForm.action = '{{ route('logout') }}';
const csrfInput = document.createElement('input');
csrfInput.type = 'hidden';
csrfInput.name = '_token';
csrfInput.value = '{{ csrf_token() }}';
logoutForm.appendChild(csrfInput);
document.body.appendChild(logoutForm);
logoutForm.submit();
} else if (selectedValue) {
window.location.href = selectedValue;
}
});
separate js from this code make new js on assets call him form.js and put a link on scripts.blade.js and the form put in the header do not forget to build that links dashboard.blade.php and logout.blade.php
When we integrate template, should we find all "src" and put admin/ on them?
Yes
When x-app- layout added no logout options showing
use this instead of x-app-layout
@csrf
I was having issues with the logout button for admin, it is there but it is misplaced, and I am unable to fix it
did u solve it?me too have prob in logout
use this instead of x-app-layout
@csrf
Help, Admin template links aren’t downloading (here on 2024)
Thank you 🎉🎉🎉
you good!
why are the icons on the sidebar not working
am using laravel 10 in logout it give an error help pls
when i am passing x layout amin not showing
same issue
use this instead of x-app-layout
@csrf
add admin before assets never works
then what to do?
Remove the assets@@AsthEtiX_Girl
you should change it in home.blade.php not index.html
Bro make full tutorial fast
Bro log out is not working please help me bro
use this instead of x-app-layout
@csrf
Hola, la plantilla admin?
Template download link in the description
Thanks.
Your project is interesting.
How often will you upload videos?
One video everyday
Excellent
I dont under stand about ''
cleared! ruclips.net/video/MlKcDwGNr28/видео.html
😄
it will give you name profile and logout syestem
@@LearnwithAkram39 IT DOSENT WORK FOR ME IT SAYS THE GET METHOD IS NOT SUPPORTED
@@trillionairepath9070 get::post set route