@inject('request', 'Illuminate\Http\Request')
@php
if (! isset($portal_profile)) {
extract(\Modules\Portal\Support\PortalLayoutConfig::forType($portal_type ?? request()->segment(1) ?: 'customer'));
}
$is_rtl = in_array(session()->get('user.language', config('app.locale')), config('constants.langs_rtl'));
@endphp
@if(!empty(Session::get('business.logo')))
@endif
@yield('title') - {{ Session::get('business.name') }}
@include('portal::layouts.partials.head_assets')
@yield('css')
@include('portal::layouts.partials.sidebar')
@include('portal::layouts.partials.mobile_shell')
@include('portal::layouts.partials.header')
@if (session('status'))
@endif
@yield('content')
@include('portal::layouts.partials.javascripts')
@if(in_array(($portal_type ?? ''), ['supplier', 'customer'], true))
@endif
@yield('javascript')