get('landing_site_direction') ){
$site_direction = session()->get('landing_site_direction');
} else{
$site_direction = session()->get('site_direction');
}
// if (env('APP_MODE') == 'demo') {
// $site_direction = session()->get('site_direction');
// }else{
// $site_direction = \App\Models\BusinessSetting::where('key', 'site_direction')->first();
// $site_direction = $site_direction->value ?? 'ltr';
// }
?>
@php( $direction= ( $site_direction === 'rtl') ? "true" : "false")
@yield('title','Landing Page | ')
@php($icon = \App\CentralLogics\Helpers::get_settings('icon'))
@php($background_Change = \App\Models\BusinessSetting::where(['key' => 'backgroundChange'])->first())
@php($background_Change = isset($background_Change->value) ? json_decode($background_Change->value, true) : null)
@php($landing_page_text = \App\Models\BusinessSetting::where(['key' => 'landing_page_text'])->first())
@php($landing_page_text = isset($landing_page_text->value) ? json_decode($landing_page_text->value, true) : null)
@php($landing_page_links = \App\Models\BusinessSetting::where(['key' => 'landing_page_links'])->first())
@php($landing_page_links = isset($landing_page_links->value) ? json_decode($landing_page_links->value, true) : null)
@php($backgroundChange = \App\Models\BusinessSetting::where(['key' => 'backgroundChange'])->first())
@php($backgroundChange = isset($backgroundChange) && \App\Models\BusinessSetting::where(['key' => 'backgroundChange'])->first()->value ? json_decode(\App\Models\BusinessSetting::where(['key' => 'backgroundChange'])->first()->value,true):'')
@if (isset($backgroundChange['primary_1_hex']) && isset($backgroundChange['primary_2_hex']))
@endif
@stack('css_or_js')
@yield('content')
{!! Toastr::message() !!}
@stack('script_2')