add new frontend
This commit is contained in:
@ -1,16 +1,34 @@
|
||||
<div>
|
||||
@php
|
||||
$purchasing = $device->purchasing;
|
||||
@endphp
|
||||
<h3>Purchasing Information</h3>
|
||||
<ul>
|
||||
<li>price: {{ $purchasing->price }}</li>
|
||||
<li>timestamp_warranty_end: {{ $purchasing->timestamp_warranty_end }}</li>
|
||||
<li>timestamp_purchase: {{ $purchasing->timestamp_purchase }}</li>
|
||||
<li>cost_centre: {{ $purchasing->cost_centre }}</li>
|
||||
<li>seller: {{ $purchasing->seller }}</li>
|
||||
</ul>
|
||||
@can('admin-only')
|
||||
<button><a href="{{ $device->device_id }}/purchasing/edit">Edit</a></button>
|
||||
@endcan
|
||||
</div>
|
||||
@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>
|
||||
|
Reference in New Issue
Block a user