Ignore:
Timestamp:
06/05/24 13:35:43 (5 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/register-policeman.blade.php

    rf7acd52 r249bf91  
    165165    <a href="#" class="absolute w-full upgrade-btn bottom-0 active-nav-link text-white flex items-center justify-center py-4">
    166166        <i class="fas fa-arrow-circle-up mr-3"></i>
    167         Поставки за профил
     167
    168168    </a>
    169169</aside>
     
    175175        <div x-data="{ isOpen: false }" class="relative w-1/2 flex justify-end">
    176176            <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">
    177                 <img src="https://source.unsplash.com/uJ8LNVCBjFQ/400x400">
     177                @php
     178                    $person = DB::select('select * from people where pe_id=:pe_id;', ['pe_id' => Session::get('pe_id')]);
     179
     180                    if (!empty($person)) {
     181                        $image = $person[0]->picture;
     182                    } else {
     183                        $image = null;
     184                    }
     185                @endphp
     186
     187                <img src="{{ $image }}">
     188
    178189            </button>
    179190            <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.