@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