@extends('layouts.nebulox', [ 'title' => 'Link Machines', 'subtitle' => 'Assign machines to locations (one location per machine)' ]) @section('content')
Select Location
Choosing a location updates the lists below.
Machines in selected location
@if(!$selectedLocation)
Select a location first.
@else
@forelse($linkedMachines as $m) @empty @endforelse
Machine Serial Unlink
{{ $m->machineName }} {{ $m->machineSerialNumber }}
@csrf
No machines linked to this location.
@endif
Available (unlinked) machines
@if(!$selectedLocation)
Select a location first.
@else
@forelse($unlinkedMachines as $m) @empty @endforelse
Machine Serial Link
{{ $m->machineName }} {{ $m->machineSerialNumber }}
@csrf
No unlinked machines available.
@endif
@endsection