eOSP2/resources/views/kartaEwidencyjnaForm.blade.php

35 lines
1.2 KiB
PHP
Raw Normal View History

2020-07-11 20:56:21 +02:00
@extends('layout.app')
@section('center-area')
@parent
@if( auth()->check())
@if( auth()->user()->fireStationID == NULL)
Jednostka nie istnieje
@else
<form method="POST" action="/dokumentacja/karta_ewidencyjna/pdf">
{{ csrf_field() }}
<div class="form-group row">
<div class="col-auto">
<label for="location">Wnioskujacy:</label>
<select name="fireFighterID" class="form-control">
<option value="">--- Wybierz strażaka ---</option>
@foreach ($fireFighters as $fireFighter)
<option value="{{$fireFighter->id}}">{{ $fireFighter->name }} {{$fireFighter->surname }}</option>
@endforeach
</select>
</div>
</div>
<div class="form-group">
<button style="cursor:pointer" type="submit" class="btn btn-primary">Drukuj</button>
</div>
@include('inc.formerrors')
</form>
@endif
@else
Brak autoryzacji
@endif
@stop