Make $setup available to all blades
All checks were successful
Create Docker Image / Build Docker Image (x86_64) (push) Successful in 37s
Create Docker Image / Build Docker Image (arm64) (push) Successful in 1m46s
Create Docker Image / Final Docker Image Manifest (push) Successful in 10s

This commit is contained in:
2024-06-07 15:08:50 +10:00
parent 153e4dc12b
commit b23d9351b5
4 changed files with 7 additions and 6 deletions

View File

@@ -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="">&nbsp;</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>