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

Added querries half done

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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>
Note: See TracChangeset for help on using the changeset viewer.