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