abschlussprojekt-device-man.../device-app/resources/views/components/purchasing-information.blade.php

35 lines
1.1 KiB
PHP
Raw Normal View History

2023-04-06 12:17:42 +02:00
@php
$purchasing = $device->purchasing;
@endphp
<div class="table-container">
<table class="table is-narrow is-fullwidth">
<thead>
<tr>
<th>price</th>
<th>timestamp_warranty_end</th>
<th>timestamp_purchase</th>
<th>cost_centre</th>
<th>seller</th>
@can('admin-only')
<th class="is-narrow">Action</th>
@endcan
</tr>
</thead>
<tbody>
<tr>
<td>{{ $purchasing->price }}</td>
<td>{{ $purchasing->timestamp_warranty_end }}</td>
<td>{{ $purchasing->timestamp_purchase }}</td>
<td>{{ $purchasing->cost_centre }}</td>
<td>{{ $purchasing->seller }}</td>
@can('admin-only')
<td>
<button><a href="{{ $device->device_id }}/purchasing/edit">Edit</a></button>
</td>
@endcan
</tr>
</tbody>
</table>
</div>