Make $setup available to all blades
This commit is contained in:
@@ -5,7 +5,7 @@
|
||||
@endsection
|
||||
|
||||
@php
|
||||
use App\Models\{Setup,System};
|
||||
use App\Models\System;
|
||||
@endphp
|
||||
|
||||
@section('content')
|
||||
@@ -28,7 +28,7 @@ use App\Models\{Setup,System};
|
||||
<option value=""> </option>
|
||||
@foreach (System::select(['systems.id','systems.name'])
|
||||
->active()
|
||||
->where('id','<>',Setup::findOrFail(config('app.id'))->system_id)
|
||||
->where('id','<>',$setup->system_id)
|
||||
->whereRaw('id NOT IN (SELECT system_id FROM system_user)')
|
||||
->cursor() as $oo)
|
||||
<option value="{{ $oo->id }}" @if(old('id')===$oo->id)selected @endif>{{ $oo->name }}</option>
|
||||
|
Reference in New Issue
Block a user