@extends('layouts.nebulox', [ 'title' => 'Machines', 'subtitle' => 'Add and manage machines' ]) @section('content')
Add Machine
@csrf
New machines are created as unlinked. Use “Link” page to assign them to a location.
Existing Machines
@if(session('status'))
{{ session('status') }}
@endif @if($errors->any())
Fix the errors below
    @foreach($errors->all() as $e)
  • {{ $e }}
  • @endforeach
@endif
@forelse($machines as $m) @php // your controller returns stdClass rows; be defensive $created = $m->created_at ?? null; $locationName = $m->locationName ?? ''; @endphp @empty @endforelse
ID Machine Serial Location Location ID Created Actions
{{ $m->id }} {{ $m->machineName }} {{ $m->machineSerialNumber }} {{ $locationName !== '' ? $locationName : '-' }} {{ $m->location_id ?? '-' }} {{ $created ? $created : '-' }}
@csrf @method('DELETE')
No machines yet.
Note: “Created” shows “-” if the controller query does not select created_at.
@endsection