@extends('layouts.app') @section('header')
Administration

Companies

@endsection @section('content')
@forelse ($companies as $company) @empty @endforelse
Name Slug Users Workspace App version Status
{{ $company->name }} @if ($activeCompany?->id === $company->id) active context @endif {{ $company->slug }} {{ $company->users_count }} @if ($company->workspace_enabled) Enabled @else Off @endif @if ($company->locked_version) {{ $company->locked_version }} @else latest @endif @if ($company->is_active) Active @else Inactive @endif
No companies yet.
{{-- Edit modals — rendered OUTSIDE the table (a modal isn't valid markup inside ; the browser would foster-parent it and break layout). --}} @foreach ($companies as $company) @php $ekey = "company-edit-{$company->id}"; $eErr = old('form_key') === $ekey; @endphp @endforeach {{-- Create modal --}} @php $cErr = old('form_key') === 'company-create'; @endphp {{-- Published versions, offered as suggestions on every lock field. --}} @foreach ($versions as $v) @endforeach @include('admin.partials.modal-form-ux') @endsection