Changeset cf84baa for resources


Ignore:
Timestamp:
02/08/24 16:15:01 (11 months ago)
Author:
bube-ristovska <ristovska725@…>
Branches:
main
Children:
6dec591
Parents:
6b10b67
Message:

Added querries half done

Location:
resources/views
Files:
7 edited

Legend:

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

    r6b10b67 rcf84baa  
    7474                <a href="#" class="block px-4 py-2 account-link hover:text-white">Профил</a>
    7575                <a href="#" class="block px-4 py-2 account-link hover:text-white">Помош</a>
    76                 <a href="#" class="block px-4 py-2 account-link hover:text-white">Одјави се</a>
     76                <a href="/logout" class="block px-4 py-2 account-link hover:text-white">Одјави се</a>
    7777            </div>
    7878        </div>
  • resources/views/cases.blade.php

    r6b10b67 rcf84baa  
    7474                <a href="#" class="block px-4 py-2 account-link hover:text-white">Профил</a>
    7575                <a href="#" class="block px-4 py-2 account-link hover:text-white">Помош</a>
    76                 <a href="#" class="block px-4 py-2 account-link hover:text-white">Одјави се</a>
     76                <a href="/logout" class="block px-4 py-2 account-link hover:text-white">Одјави се</a>
    7777            </div>
    7878        </div>
  • resources/views/employees.blade.php

    r6b10b67 rcf84baa  
    101101                <a href="#" class="block px-4 py-2 account-link hover:text-white">Профил</a>
    102102                <a href="#" class="block px-4 py-2 account-link hover:text-white">Помош</a>
    103                 <a href="#" class="block px-4 py-2 account-link hover:text-white">Одјави се</a>
     103                <a href="/logout" class="block px-4 py-2 account-link hover:text-white">Одјави се</a>
    104104            </div>
    105105        </div>
  • resources/views/filter.blade.php

    r6b10b67 rcf84baa  
    154154                <a href="#" class="block px-4 py-2 account-link hover:text-white">Профил</a>
    155155                <a href="#" class="block px-4 py-2 account-link hover:text-white">Помош</a>
    156                 <a href="#" class="block px-4 py-2 account-link hover:text-white">Одјави се</a>
     156                <a href="/logout" class="block px-4 py-2 account-link hover:text-white">Одјави се</a>
    157157            </div>
    158158        </div>
     
    216216        <h1 class="text-3xl text-black pb-6">Контролна табла</h1>
    217217        <div style="width: 600px">
    218             <form>
    219                 <label for="default-search" class="mb-2 text-sm font-medium text-gray-900 sr-only dark:text-white">Search</label>
     218            <form action="/filter" method="post">
     219                @csrf
    220220                <div class="relative">
    221221                    <div class="absolute inset-y-0 start-0 flex items-center ps-3 pointer-events-none">
     
    224224                        </svg>
    225225                    </div>
    226                     <input type="search" id="default-search" class="block w-full p-4 ps-10 text-sm text-gray-900 border border-gray-300 rounded-lg bg-gray-50 focus:ring-blue-500 focus:border-blue-500 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500" placeholder="Пребарај матичен број..." required>
     226
     227                    <label for="embg" class="mb-2 text-sm font-medium text-gray-900 sr-only dark:text-white">Search</label>
     228                    <input type="text" id="embg" name="embg" class="block w-full p-4 ps-10 text-sm text-gray-900 border border-gray-300 rounded-lg bg-gray-50 focus:ring-blue-500 focus:border-blue-500 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500" placeholder="Пребарај матичен број..." required>
    227229                    <button type="submit" class="text-white absolute end-2.5 bottom-2.5 bg-blue-700 hover:bg-blue-800 focus:ring-4 focus:outline-none focus:ring-blue-300 font-medium rounded-lg text-sm px-4 py-2 dark:bg-blue-600 dark:hover:bg-blue-700 dark:focus:ring-blue-800">Search</button>
    228230                </div>
     
    269271
    270272
    271         <div class="w-full mt-12">
    272             <p class="text-xl pb-3 flex items-center">
    273                 <i class="fas fa-list mr-3"></i> Граѓани
    274             </p>
    275 
    276             <div class="bg-white overflow-auto">
     273            <div class="bg-white overflow-auto max-h-96">
    277274                <table class="min-w-full bg-white">
    278275                    <thead class="bg-gray-800 text-white">
     
    289286                    </thead>
    290287                    <tbody class="text-gray-700">
    291                     <tr>
    292                         <td class="w-1/3 text-left py-3 px-4">1011001470303</td>
    293                         <td class="w-1/3 text-left py-3 px-4">Емир</td>
    294                         <td class="w-1/3 text-left py-3 px-4">Абази</td>
    295                         <td class="w-1/3 text-left py-3 px-4">М</td>
    296                         <td class="w-1/3 text-left py-3 px-4">ул.Македонија бр.80 Тетово</td>
    297                         <td class="w-1/3 text-left py-3 px-4">Македонија</td>
    298                         <td class="w-1/3 text-left py-3 px-4">Албанец</td>
    299                         <td class="text-left py-3 px-4"><a class="hover:text-blue-500" href="tel:622322662">622322662</a></td>
    300                     </tr>
    301                     <tr class="bg-gray-200">
    302                         <td class="w-1/3 text-left py-3 px-4">0302954470303</td>
    303                         <td class="w-1/3 text-left py-3 px-4">Василија</td>
    304                         <td class="w-1/3 text-left py-3 px-4">Васиљоска</td>
    305                         <td class="w-1/3 text-left py-3 px-4">Ж</td>
    306                         <td class="w-1/3 text-left py-3 px-4">ул.154 бр.20 Скопје</td>
    307                         <td class="w-1/3 text-left py-3 px-4">Македонија</td>
    308                         <td class="w-1/3 text-left py-3 px-4">Македонка</td>
    309                         <td class="text-left py-3 px-4"><a class="hover:text-blue-500" href="tel:622322662">622322662</a></td>
    310                     </tr>
     288
     289                    @foreach($peoples as $people)
     290                        <tr>
     291                            <td class="w-1/3 text-left py-3 px-4">{{$people->embg}}</td>
     292                            <td class="w-1/3 text-left py-3 px-4">{{$people->first_name}}</td>
     293                            <td class="w-1/3 text-left py-3 px-4">{{$people->last_name}}</td>
     294                            <td class="w-1/3 text-left py-3 px-4">{{$people->gender}}</td>
     295                            <td class="w-1/3 text-left py-3 px-4">{{$people->address}}</td>
     296                            <td class="w-1/3 text-left py-3 px-4">{{$people->country}}</td>
     297                            <td class="w-1/3 text-left py-3 px-4">{{$people->nationality}}</td>
     298                            <td class="text-left py-3 px-4"><a class="hover:text-blue-500" href="tel:622322662">{{$people->contact}}</a></td>
     299                        </tr>
     300                    @endforeach
    311301                    </tbody>
    312302                </table>
  • resources/views/login.blade.php

    r6b10b67 rcf84baa  
    4444                            Најави се на твојот профил
    4545                        </h1>
    46                         <form class="space-y-4 md:space-y-6" action="#">
     46                        <form class="space-y-4 md:space-y-6" method="POST" action="/login" >
     47                            @csrf
    4748                            <div>
    48                                 <label for="email" class="block mb-2 text-sm font-medium text-gray-900 dark:text-white">Е-маил</label>
    49                                 <input type="email" name="email" id="email" class="bg-gray-50 border border-gray-300 text-gray-900 sm:text-sm rounded-lg focus:ring-primary-600 focus:border-primary-600 block w-full p-2.5 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500" placeholder="ime.prezime@policiska_stanica.mk" required="">
     49                                <label for="badge_no" class="block mb-2 text-sm font-medium text-gray-900 dark:text-white">Број на значка</label>
     50                                <input type="text" name="badge_no" id="badge_no" class="bg-gray-50 border border-gray-300 text-gray-900 sm:text-sm rounded-lg focus:ring-primary-600 focus:border-primary-600 block w-full p-2.5 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500" placeholder="Број на значка" required="">
    5051                            </div>
     52                            @error('badge_no')
     53                            <p class="text-red-500 text-xs mt-1">{{$message}}</p>
     54                            @enderror
    5155                            <div>
    5256                                <label for="password" class="block mb-2 text-sm font-medium text-gray-900 dark:text-white">Лозинка</label>
    5357                                <input type="password" name="password" id="password" placeholder="••••••••" class="bg-gray-50 border border-gray-300 text-gray-900 sm:text-sm rounded-lg focus:ring-primary-600 focus:border-primary-600 block w-full p-2.5 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500" required="">
    5458                            </div>
     59                            @error('password')
     60                            <p class="text-red-500 text-xs mt-1">{{$message}}</p>
     61                            @enderror
     62
    5563                            <div class="flex items-center justify-between">
    5664                                <div class="flex items-start">
    5765                                    <div class="flex items-center h-5">
    58                                         <input id="remember" aria-describedby="remember" type="checkbox" class="w-4 h-4 border border-gray-300 rounded bg-gray-50 focus:ring-3 focus:ring-primary-300 dark:bg-gray-700 dark:border-gray-600 dark:focus:ring-primary-600 dark:ring-offset-gray-800" required="">
     66                                        <input id="remember" aria-describedby="remember" type="checkbox" class="w-4 h-4 border border-gray-300 rounded bg-gray-50 focus:ring-3 focus:ring-primary-300 dark:bg-gray-700 dark:border-gray-600 dark:focus:ring-primary-600 dark:ring-offset-gray-800">
    5967                                    </div>
    6068                                    <div class="ml-3 text-sm">
  • resources/views/register-policeman.blade.php

    r6b10b67 rcf84baa  
    164164                <a href="#" class="block px-4 py-2 account-link hover:text-white">Профил</a>
    165165                <a href="#" class="block px-4 py-2 account-link hover:text-white">Помош</a>
    166                 <a href="#" class="block px-4 py-2 account-link hover:text-white">Одјави се</a>
     166                <a href="/logout"class="block px-4 py-2 account-link hover:text-white">Одјави се</a>
    167167            </div>
    168168        </div>
  • resources/views/welcome.blade.php

    r6b10b67 rcf84baa  
    2929    <aside class="relative bg-sidebar h-screen w-64 hidden sm:block shadow-xl">
    3030            <div class="p-6">
    31                 <a href="#" class="text-white text-3xl font-semibold uppercase hover:text-gray-300">Началник</a>
     31                @if (Session::get('is_policeman'))
     32                    <a href="#" class="text-white text-3xl font-semibold uppercase hover:text-gray-300">Полицаец</a>
     33                    @else
     34                    <a href="#" class="text-white text-3xl font-semibold uppercase hover:text-gray-300">Началник</a>
     35                @endif
    3236                <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">
    3337                    <i class="fas fa-plus mr-3"></i> Додади полицаец
     
    7478                        <a href="#" class="block px-4 py-2 account-link hover:text-white">Профил</a>
    7579                        <a href="#" class="block px-4 py-2 account-link hover:text-white">Помош</a>
    76                         <a href="#" class="block px-4 py-2 account-link hover:text-white">Одјави се</a>
     80                        <a href="/logout" class="block px-4 py-2 account-link hover:text-white">Одјави се</a>
    7781                    </div>
    7882                </div>
Note: See TracChangeset for help on using the changeset viewer.