I look for to switch between the main layout RTL and main layout LTR, when the user selects the English language will set in layout LTR and when the user selects Arabic will set to layout RTL.
I did that but it's don't work below :
@if (Session::get('locale') ==='ar')
@extends('layouts.main-rtl')
@elseif(Session::get('locale') ==='en')
@extends('layouts.main')
@endif
in my debug laravel I see this see in the screenshot below :
Thank you in advance.
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire