@inject('request', 'Illuminate\Http\Request') @if ( $request->segment(1) == 'pos' && ($request->segment(2) == 'create' || $request->segment(3) == 'edit' || $request->segment(2) == 'payment')) @php $pos_layout = true; @endphp @else @php $pos_layout = false; @endphp @endif @php $whitelist = ['127.0.0.1', '::1']; @endphp @yield('title') - {{ Session::get('business.name') }} @include('layouts.partials.css') @include('layouts.partials.extracss') @yield('css')
@if (!$pos_layout) @include('layouts.partials.sidebar') @endif @if (in_array($_SERVER['REMOTE_ADDR'], $whitelist)) @endif @can('view_export_buttons') @endcan @if (isMobile()) @endif @if (session('status')) @endif
@if (!$pos_layout) @include('layouts.partials.header') @else @include('layouts.partials.header-pos') @endif
@yield('vue')
@yield('content') @if (!$pos_layout) @include('layouts.partials.footer') @else @include('layouts.partials.footer_pos') @endif
@if (config('constants.iraqi_selling_price_adjustment')) @endif
@include('home.todays_profit_modal') @if (!empty($__additional_html)) {!! $__additional_html !!} @endif @include('layouts.partials.javascripts') @if (!empty($__additional_views) && is_array($__additional_views)) @foreach ($__additional_views as $additional_view) @includeIf($additional_view) @endforeach @endif