2019-12-06 02:00:06 +01:00
|
|
|
@extends('layout.app')
|
|
|
|
|
|
|
|
@section('left-menu')
|
|
|
|
@parent
|
|
|
|
<ul>
|
|
|
|
<a href="sprzet/add"><li>Dodaj<img src="../img/left_menu_icon/add.png"></li></a>
|
|
|
|
<li>Edytuj<img src="../img/left_menu_icon/edit.png"></li>
|
|
|
|
<li>Usuń<img src="../img/left_menu_icon/delete.png"></li>
|
|
|
|
</ul>
|
|
|
|
@stop
|
|
|
|
|
|
|
|
@section('center-area')
|
|
|
|
@parent
|
|
|
|
|
|
|
|
@if( auth()->check())
|
|
|
|
@if( auth()->user()->fireStationID == NULL)
|
|
|
|
Jednostka nie istnieje
|
|
|
|
@else
|
2019-12-06 21:22:15 +01:00
|
|
|
<p align='center'>
|
2019-12-06 02:00:06 +01:00
|
|
|
<table class='firefighterViewTable'>
|
|
|
|
<tr class='table-header'>
|
|
|
|
<td>Nazwa</td>
|
|
|
|
<td>Ilość</td>
|
|
|
|
<td>Param. charakterystyczny</td>
|
|
|
|
@foreach($equipment as $item)
|
|
|
|
<tr>
|
2019-12-06 21:22:15 +01:00
|
|
|
<form action="{{ route('equipment.destroy', $item->id)}}" method="post">
|
2019-12-06 02:00:06 +01:00
|
|
|
<td id="name{{ $item->id }}">{{ $item->name }}</td>
|
|
|
|
<td id="amount{{ $item->id }}">{{ $item->amount }}</td>
|
|
|
|
<td id="parameter{{ $item->id }}">{{ $item->parameter }}</td>
|
|
|
|
<td><a href="{{ URL::asset('sprzet/edit/'.$item->id) }}"><input type="button" onclick="" value="Edytuj"> </a></td>
|
2019-12-06 21:22:15 +01:00
|
|
|
<td>
|
|
|
|
{{ csrf_field() }}
|
|
|
|
@method('DELETE')
|
|
|
|
<button class="btn btn-danger" type="submit">Usuń</button>
|
|
|
|
</form></td>
|
2019-12-06 02:00:06 +01:00
|
|
|
</tr>
|
|
|
|
@endforeach
|
|
|
|
</table>
|
2019-12-06 21:22:15 +01:00
|
|
|
</p>
|
2019-12-06 02:00:06 +01:00
|
|
|
|
|
|
|
@endif
|
|
|
|
@else
|
|
|
|
Brak autoryzacji
|
|
|
|
@endif
|
|
|
|
|
|
|
|
@stop
|