@php use App\Models\ODO\Rejestr_Upowaznien\t042_RejestrUpowaznien; $RecordsPerSite = 10; $i = 1; if(isset($_GET['page'])){ $page = $_GET['page']; if($page > 1){ $i = (($page -1 ) * $RecordsPerSite) + 1; } } $page = session()->get('page'); $sort = session()->get('sort'); $direction = session()->get('direction'); $HowManyRecords = $HowManyAllRecords = DB::table('t042_upowaznienia') ->count(); $rejestr_upowaznien = t042_RejestrUpowaznien::sortable() ->paginate($RecordsPerSite); @endphp
| @sortablelink('id', 'Lp') | Komórka Organizacyjna | Nazwisko | Imię | @sortablelink('data_od','Data nadania upoważnienia') | @sortablelink('data_do','Data odebrania upoważnienia') | Status | Zakres upoważnienia |
|---|---|---|---|---|---|---|---|
| 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 |
| {{ $i++ }} | @php $dzial = DB::table('sw020_komorki_organizacyjne') ->where('id', $rejestr->id) ->first(); //$dzial->nazwa_pelna; @endphp@php $osoba_t035_osoby = DB::table('t035_osoby') ->where('id', $rejestr->id_osoby) ->first(); @endphp | {{ $osoba_t035_osoby->nazwisko ?? 'Brak' }} | {{ $osoba_t035_osoby->imie ?? 'Brak' }} | {{ date('Y-m-d', strtotime($rejestr->data_od)) }} | @php if($rejestr->data_do == null){ $data_do = "bezterminowo"; }else{ $data_do = date('Y-m-d', strtotime($rejestr->data_do)); } @endphp {{ date('Y-m-d', strtotime($rejestr->data_od)) }} - {{ $data_do }} |
@if($rejestr->status_aktualny < 1)
|
{{ $rejestr->zakres_upowaznienia_opis }} |
Brak rekordów spełniających wybrany warunek. |
|||||||