eOSP2/resources/views/userProfile.blade.php

63 lines
1.9 KiB
PHP

@extends('layout.app')
@section('left-menu')
@parent
<ul>
<a href="/userprofile/edit"><li>Edytuj profil<img src="/img/left_menu_icon/edit.png"></li></a>
<a href="/userprofile/szkolenia"><li>Szkolenia<img src="/img/left_menu_icon/more.png"></li></a>
<a href="/userprofile/odznaczenia"><li>Odznaczenia<img src="/img/left_menu_icon/more.png"></li></a>
<a href="/userprofile/passwordchange"><li>Zmiana hasła<img src="/img/left_menu_icon/edit.png"></li></a>
</ul>
@stop
@section('center-area')
@parent
@if( auth()->check())
@if (\Session::has('success'))
<div class="alert alert-success">
<ul>
<li>{!! \Session::get('success') !!}</li>
</ul>
</div>
@endif
<p align='center'>
<table class='table'>
<tr>
<th>Imię i nazwisko:</th>
<td>{{ $userData->name }} {{ $userData->surname }}</td>
</tr>
<tr>
<th>PESEL:</th>
<td>{{ $userData->PESEL}}</td>
</tr>
<tr>
<th>Nr telefonu:</th>
<td>{{ $userData->phoneNumber}}</td>
</tr>
<tr>
<th>Adres e-mail:</th>
<td>{{ $userData->email}}</td>
</tr>
{{-- <tr> --}}
{{-- <th>Numer ewidencyjny:</th> --}}
{{-- <td>{{ $userData->number}}</td> --}}
{{-- </tr> --}}
<tr>
<th>Stopień:</th>
<td>{{ $userData->rank}}</td>
</tr>
<tr>
<th>Funkcja:</th>
<td>{{ $userData->unitFunction}}</td>
</tr>
</table>
</p>
@else
Brak autoryzacji
@endif
@stop