forked from s421507/eOSP2
45 lines
1.6 KiB
PHP
45 lines
1.6 KiB
PHP
@extends('layout.app')
|
|
|
|
@section('left-menu')
|
|
@parent<ul>
|
|
<a href="wyjazdy/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
|
|
<table class='firefighterViewTable'>
|
|
<tr class='table-header'>
|
|
<td>Data</td>
|
|
<td>Miejsce</td>
|
|
<td>Cel</td>
|
|
<td>Rodzaj zagrożenia</td>
|
|
<td>Dowódca</td>
|
|
</tr>
|
|
|
|
@foreach($operations as $operation)
|
|
<tr>
|
|
<td id="operationDate{{ $operation->id }}">{{ $operation->operationDate }}</td>
|
|
<td id="operationLocation{{ $operation->id }}">{{ $operation->location }}</td>
|
|
<td id="operationTarget{{ $operation->id }}">{{ $operation->target }}</td>
|
|
<td id="operationDangerType{{ $operation->id }}">{{ $operation->dangerType }}</td>
|
|
<td id="operationCommander{{ $operation->id }}">{{$operation->name}} {{$operation->surname}}</td>
|
|
<td><a href="{{ URL::asset('wyjazdy/edit/'.$operation->id) }}"><input type="button" onclick="" value="Edytuj"> </a></td>
|
|
</tr>
|
|
@endforeach
|
|
</table>"
|
|
|
|
@endif
|
|
@else
|
|
Brak autoryzacji
|
|
@endif
|
|
|
|
@stop
|