Ignore:
Timestamp:
06/05/24 13:35:43 (7 months ago)
Author:
bube-ristovska <ristovska725@…>
Branches:
main
Children:
768f473
Parents:
f7acd52
Message:

New feature - details for employee

File:
1 edited

Legend:

Unmodified
Added
Removed
  • resources/views/cases.blade.php

    rf7acd52 r249bf91  
    3131        @if (Session::get('is_policeman'))
    3232            <a href="#" class="text-white text-3xl font-semibold uppercase hover:text-gray-300">Полицаец</a>
     33            <button class="w-full bg-white cta-btn font-semibold py-2 mt-5 rounded-br-lg rounded-bl-lg rounded-tr-lg shadow-lg hover:shadow-xl hover:bg-gray-300 flex items-center justify-center">
     34                <i class="fas fa-plus mr-3"></i> <a href="/register-statement">Додади изјава</a>
     35            </button>
    3336        @else
    3437            <a href="#" class="text-white text-3xl font-semibold uppercase hover:text-gray-300">Началник</a>
     
    6265    <a href="#" class="absolute w-full upgrade-btn bottom-0 active-nav-link text-white flex items-center justify-center py-4">
    6366        <i class="fas fa-arrow-circle-up mr-3"></i>
    64         Поставки за профил
     67
    6568    </a>
    6669</aside>
     
    7275        <div x-data="{ isOpen: false }" class="relative w-1/2 flex justify-end">
    7376            <button @click="isOpen = !isOpen" class="realtive z-10 w-12 h-12 rounded-full overflow-hidden border-4 border-gray-400 hover:border-gray-300 focus:border-gray-300 focus:outline-none">
    74                 <img src="https://source.unsplash.com/uJ8LNVCBjFQ/400x400">
     77                @php
     78                    $person = DB::select('select * from people where pe_id=:pe_id;', ['pe_id' => Session::get('pe_id')]);
     79
     80                    if (!empty($person)) {
     81                        $image = $person[0]->picture;
     82                    } else {
     83                        $image = null;
     84                    }
     85                @endphp
     86
     87                <img src="{{ $image }}">
     88
    7589            </button>
    7690            <button x-show="isOpen" @click="isOpen = false" class="h-full w-full fixed inset-0 cursor-default"></button>
Note: See TracChangeset for help on using the changeset viewer.