@extends('user.layout') {{-- this style will be applied when the direction of language is right-to-left --}} @php use App\Models\User\Language; $selLang = \App\Models\Language::where([ ['code', \Illuminate\Support\Facades\Session::get('currentLangCode')], ])->first(); $userDefaultLang = Language::where([['user_id', \Illuminate\Support\Facades\Auth::id()], ['is_default', 1]])->first(); $userLanguages = Language::where('user_id', \Illuminate\Support\Facades\Auth::id())->get(); @endphp @if (!empty($selLang) && $selLang->rtl == 1) @section('styles') @endsection @endif @section('content')