2023-03-24 16:51:30 +01:00
|
|
|
@extends('layout')
|
|
|
|
|
|
|
|
@section('content')
|
2023-04-06 12:17:42 +02:00
|
|
|
<h3 class="title is-3 has-text-centered">Device List</h3>
|
|
|
|
@can('admin-only')
|
|
|
|
<div class="buttons is-right">
|
|
|
|
<a class="button is-small" href="devices/create">Create Device</a>
|
|
|
|
</div>
|
|
|
|
@endcan
|
|
|
|
@unless (count($devices) == 0)
|
|
|
|
<div class="table-container">
|
|
|
|
<table class="table is-narrow is-fullwidth is-striped is-hoverable">
|
|
|
|
<thead>
|
|
|
|
<tr>
|
|
|
|
<th>device_title</th>
|
|
|
|
<th>device_type</th>
|
|
|
|
<th>description</th>
|
|
|
|
<th>accessories</th>
|
|
|
|
<th>rz_username_buyer</th>
|
|
|
|
<th>serial_number</th>
|
|
|
|
<th>image_url</th>
|
|
|
|
<th>room_code</th>
|
|
|
|
<th>rz_username</th>
|
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
<tbody>
|
|
|
|
@foreach ($devices as $device)
|
|
|
|
<x-device-simple :device="$device" />
|
|
|
|
@endforeach
|
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
</div>
|
2023-03-24 16:51:30 +01:00
|
|
|
@else
|
|
|
|
<p>No devices found</p>
|
|
|
|
@endunless
|
2023-04-06 12:17:42 +02:00
|
|
|
|
2023-03-25 11:02:47 +01:00
|
|
|
@endsection
|