1
0
forked from s421507/eOSP2
eOSP2/resources/views/unit.blade.php

101 lines
4.1 KiB
PHP
Raw Normal View History

2019-07-11 23:55:51 +02:00
@extends('layout.app')
@section('left-menu')
@parent
@if( auth()->check() )
@if( auth()->user()->fireStationID != NULL)
@if(auth()->user()->accessLevel() == 50)
2019-07-11 23:55:51 +02:00
<ul>
2019-12-07 01:56:30 +01:00
<a href="/jednostka/edit"><li>Edytuj<img src="img/left_menu_icon/edit.png"></li></a>
2019-07-11 23:55:51 +02:00
</ul>
@endif
@endif
@endif
2019-07-11 23:55:51 +02:00
@stop
@section('center-area')
@parent
@if( auth()->check() )
@if( auth()->user()->fireStationID == NULL)
@include('inc.addFireStation')
2019-09-25 02:13:13 +02:00
@else
<div>
2020-02-01 01:03:57 +01:00
2020-02-01 02:33:06 +01:00
<form action="{{ route('fireStation.singlePDF') }}" method="post" style="display:inline;">
2020-02-01 01:03:57 +01:00
{{ csrf_field() }}
<input type="hidden" class="form-control" name="fireStationID" value="{{auth()->user()->fireStationID}}">
<button class="btn btn-dark" type="submit">Drukuj informacje</button>
</form>
<table class="table">
<tr>
<th>Nazwa</th>
<td>{{ $fireStation-> name }}</td>
</tr>
<tr>
<th>Województwo</th>
<td>{{ $fireStation-> voivodeship }}</td>
</tr>
<tr>
<th>Powiat</th>
<td>{{ $fireStation-> county }}</td>
</tr>
<tr>
<th>Gmina i numer ewidencyjny</th>
<td>{{ $fireStation-> community }} {{ $fireStation-> number }}</td>
</tr>
<tr>
<th>Kod pocztowy, Miejscowość</th>
<td>{{ $fireStation-> zipCode }} {{ $fireStation-> name }}</td>
</tr>
<tr>
<th>Ulica i numer</th>
<td>{{ $fireStation-> address }}</td>
</tr>
<tr>
<th>Szerokość i długość geograficzna</th>
<td>{{ $fireStation-> latitude }} | {{ $fireStation-> longitude }}</td>
</tr>
<tr>
<th>KRS</th>
<td>{{ $fireStation-> KRS }}</td>
</tr>
<tr>
<th>NIP</th>
<td>{{ $fireStation-> NIP }}</td>
</tr>
<tr>
<th>Telefon</th>
<td>{{ $fireStation-> phoneNumber }}</td>
</tr>
<tr>
<th>E-mail</th>
<td>{{ $fireStation-> email }}</td>
</tr>
</table>
2020-02-01 01:03:57 +01:00
</div>
<div>
@endif
2019-09-24 18:05:37 +02:00
@else
Witamy na stronie eOSP! <a href="/login">Zaloguj się</a> lub <a href="/register">Zarejestruj nową jednostkę</a>.
2019-09-24 18:05:37 +02:00
<div>
@endif
2019-07-11 23:55:51 +02:00
</div>
@stop
{{-- <p><b>Nazwa:</b> {{ $fireStation-> name }}</p>--}}
{{-- <p><b>Województwo:</b> {{ $fireStation-> voivodeship }}</p>--}}
{{-- <p><b>Powiat:</b> {{ $fireStation-> county }}</p>--}}
{{-- <p><b>Gmina i numer ewidencyjny:</b> {{ $fireStation-> community }} {{ $fireStation-> number }}</p>--}}
{{-- <p><b>Kod pocztowy, Miejscowość:</b> {{ $fireStation-> zipCode }} {{ $fireStation-> name }}</p>--}}
{{-- <p><b>Ulica i numer:</b> {{ $fireStation-> address }}</p>--}}
{{-- <p><b>Szerokość i długość geograficzna:</b> {{ $fireStation-> latitude }} | {{ $fireStation-> longitude }}</p>--}}
{{-- <p><b>KRS:</b> {{ $fireStation-> KRS }}</p>--}}
{{-- <p><b>NIP:</b> {{ $fireStation-> NIP }} </p>--}}
{{-- <p><b>Telefon:</b> {{ $fireStation-> phoneNumber }}</p>--}}
{{-- <p><b>E-mail:</b> {{ $fireStation-> email }}</p>--}}
{{-- <hr>--}}
{{-- <p><b>Liczba członków:</b> {{$users}}</p>--}}