@extends('master') @section('content') @if($message = session('error'))
{{ $message }}
@endif

Assign List

@if(auth()->check() && auth()->user()->role_id == 2) @endif
@foreach($usersWithVehicles as $userId => $userData) @endforeach
Employee ID Employee Dept ID Vehicles Action
{{ $userData['emp_id'] }} {{ $userData['name'] }} {{ $userData['dept_id'] }}
    @foreach($userData['vehicles'] as $vehicle)
  • {{ $vehicle->make . ' ' . $vehicle->model . ' ' . $vehicle->year }}
  • @endforeach
Edit
@endsection @push('scripts') @endpush