Changeset d9c4096


Ignore:
Timestamp:
02/10/24 17:58:54 (9 months ago)
Author:
bube-ristovska <ristovska725@…>
Branches:
main
Children:
92df8cd
Parents:
6dec591
Message:

Bug with embg

Files:
11 edited

Legend:

Unmodified
Added
Removed
  • app/Http/Controllers/CrimeCaseController.php

    r6dec591 rd9c4096  
    99{
    1010    function cases(){
     11        if(Session::get('pe_id') == null) {
     12            return view('login');
     13        }
    1114
    12         $police_station= DB::select('select * from police_station where pe_id=:pe_id;',['pe_id'=> Session::get('pe_id')]);
     15
     16        if(Session::get('is_policeman')){
     17            $police_station = DB::select('select * from police_station where p_id=:p_id;',['p_id'=>  Session::get('p_id')]);
     18        } else {
     19            $police_station = DB::select('select * from police_station where pe_id=:pe_id;',['pe_id'=>  Session::get('pe_id')]);
     20        }
     21
    1322        $cases = DB::select('select * from crime_case where p_id=:p_id;',['p_id'=> $police_station[0]->p_id]);
    1423
     24
    1525        return view('cases', [
    16             'cases' => $cases
     26            'cases' => $cases,
     27            'p_address'=>$police_station[0]->p_address
    1728        ]);
    1829
    1930    }
    20     function case(){
    21         return view('case');
     31    function case($wildcard){
     32        $case = DB::select('select * from crime_case where c_id=:c_id;',['c_id'=> $wildcard]);
     33        $p_address = DB::select('select p_address from police_station where p_id=:p_id;',['p_id'=> $case[0]->p_id]);
     34        $statements = DB::select('select * from statements where c_id=:c_id;',['c_id'=> $wildcard]);
     35        $evidence = DB::select('select * from evidence_of_case where c_id=:c_id;',['c_id'=> $wildcard]);
     36        return view('case', [
     37            'case' => $case[0],
     38            'p_address'=>$p_address[0]->p_address,
     39            'statements'=>$statements,
     40            'evidence'=>$evidence,
     41        ]);
    2242    }
    2343}
  • app/Http/Controllers/OfficerController.php

    r6dec591 rd9c4096  
    77use Illuminate\Http\Request;
    88use Illuminate\Support\Facades\DB;
     9use Illuminate\Support\Facades\Session;
    910
    1011class OfficerController extends Controller
     
    1213    function employees()
    1314    {
     15        if(Session::get('pe_id') == null) {
     16            return view('login');
     17        }
    1418        $results = DB::select('select * from policeman join people on policeman.pe_id = people.pe_id;');
    1519        return view('employees', [
  • app/Http/Controllers/PeopleController.php

    r6dec591 rd9c4096  
    55use Illuminate\Http\Request;
    66use Illuminate\Support\Facades\DB;
     7use Illuminate\Support\Facades\Session;
    78
    89class PeopleController extends Controller
    910{
    1011    function filter(){
     12        if(Session::get('pe_id') == null) {
     13            return view('login');
     14        }
    1115        $peoples = DB::select('select * from people;');
    1216
     
    1620    }
    1721    function filter_post(){
     22        if(Session::get('pe_id') == null) {
     23            return view('login');
     24        }
    1825        $credentials = request()->validate([
    1926            'embg' => 'required'
     
    2734        ]);
    2835    }
     36    function get_person($embg){
     37        $person = DB::select('SELECT * FROM people WHERE embg=:embg', ['embg' => $embg]);
     38        dd($person);
     39        return view('register-policeman', [
     40            'person' => $person[0]
     41        ]);
     42    }
    2943}
  • app/Http/Controllers/SessionsController.php

    r6dec591 rd9c4096  
    2828        }
    2929        if($exists == null) {
    30             return back()->withErrors(['badge_no' => 'Invalid credentials']);
     30            return back()->withErrors(['badge_no' => 'Invalid badge_no']);
    3131        }
    3232
     
    4141            Session::put('badge_no', $badge_no);
    4242            Session::put('is_policeman', $policeman);
    43             Session::put('pe_id', $exists[0]->pe_id);
     43            if($policeman){
     44                Session::put('p_id', $exists[0]->p_id);
     45            } else {
     46                Session::put('pe_id', $exists[0]->pe_id);
     47            }
    4448            return redirect()->intended('/');
    4549        }
  • resources/views/case.blade.php

    r6dec591 rd9c4096  
    2222        .nav-item:hover { background: #1947ee; }
    2323        .account-link:hover { background: #3d68ff; }
     24        .card {
     25            /* Add shadows to create the "card" effect */
     26            box-shadow: 0 4px 8px 0 rgba(0,0,0,0.2);
     27            transition: 0.3s;
     28        }
     29
     30        /* On mouse-over, add a deeper shadow */
     31        .card:hover {
     32            box-shadow: 0 8px 16px 0 rgba(0,0,0,0.2);
     33        }
     34
     35        /* Add some padding inside the card container */
     36        .kontainer {
     37            padding: 2px 16px;
     38        }
    2439    </style>
    2540    <script src="https://cdn.tailwindcss.com"></script>
     
    2944<aside class="relative bg-sidebar h-screen w-64 hidden sm:block shadow-xl">
    3045    <div class="p-6">
    31         <a href="#" class="text-white text-3xl font-semibold uppercase hover:text-gray-300">Началник</a>
    32         <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">
    33             <i class="fas fa-plus mr-3"></i> Додади полицаец
    34         </button>
     46        @if (Session::get('is_policeman'))
     47            <a href="#" class="text-white text-3xl font-semibold uppercase hover:text-gray-300">Полицаец</a>
     48        @else
     49            <a href="#" class="text-white text-3xl font-semibold uppercase hover:text-gray-300">Началник</a>
     50            <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">
     51                <i class="fas fa-plus mr-3"></i> <a href="/register-policeman">Додади полицаец</a>
     52            </button>
     53        @endif
    3554    </div>
    3655    <nav class="text-white text-base font-semibold pt-3">
     
    140159            <div class="w-full mt-12">
    141160                <p class="text-xl pb-3 flex items-center">
    142                     <i class="fas fa-list mr-3"></i> Случаj Подморница
     161                    <i class="fas fa-list mr-3"></i> {{$case->c_name}}
    143162                </p>
    144163                <div class="bg-white overflow-auto">
    145164                    <div class="md:flex items-start justify-center py-12 2xl:px-20 md:px-6 px-4">
    146                         <div class="xl:w-2/6 lg:w-2/5 w-80 md:block hidden">
    147                             <img class="w-full" alt="image of a girl posing" src="data:image/jpeg;base64,/9j/4AAQSkZJRgABAQAAAQABAAD/2wCEAAoHCBUVFRgWFhYYGBgaHBoaHBwcHB4cGhoaGBkaGhgcHhwcIS4lHB4rIRgaJjgmKy80NTU1HCQ7QDszPy40NTEBDAwMEA8QHhISHjQrJCs0NDQ0NDQ0NDQ0NDQ0NDQ0NDQ0NDQ0NDQ0NDQ0NDQ0NDQ0NDQ0NDQ0NDQ0NDQ0NDQ0NP/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dIrKylGWaVyKKLgO9ZWUiQuWgdqq8Xh4M1usqXZMXsPDAfT16VbYZTl1+8R9dqysp0CG8OVPhc6cjOin/B68vnS8QYJj9cqysrp4mDD2nI0HoedGa2Tv9TH0rKyuzBErVzITBBGxESCvMUDF4PKA32W1HY818x9a1WVw8nwayKEEVFmrKyuYnQWi4tWEABBV2ZSsg5n005HTfSgm2hEw1okwA/wnybdfXTvWVlYfYroMlkKCHVgxgoZARhzhoIPzq2tMFAGd9PT8RWqygj//2Q==" />
    148                             <img class="mt-6 w-full" alt="image of a girl posing" src="https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcQaSnnhWXrRlhi9Md9mu8L5BvAPFBo_lI8Pyw&usqp=CAU" />
     165                        <div>
     166                        @foreach($evidence as $ev)
     167                        <div class=" w-full md:block hidden">
     168                            <img class="mt-6 w-full" alt="image" src="{{$ev->e_picture}}" />
     169                        </div>
     170                        @endforeach
    149171                        </div>
    150172                        <div class="md:hidden">
     
    159181                        <div class="xl:w-2/5 md:w-1/2 lg:ml-8 md:ml-6 md:mt-0 mt-6">
    160182                            <div class="border-b border-black-200 pb-6">
    161                                 <p class="text-sm leading-none text-black-600 dark:text-black-300 ">Полицаец на случајот: Петко Митрев</p>
     183                                <p class="text-sm leading-none text-black-600 dark:text-black-300 ">Датум: {{$case->opening_date}}</p>
    162184                            </div>
     185
    163186                            <div class="py-4 border-b border-black-200 flex items-center justify-between">
    164                                 <p class="text-base leading-4 text-black-800 dark:text-black-300"><button  class="bg-blue-500 hover:bg-blue-700 text-white font-bold py-2 px-4 rounded">Изјави</button></p>
    165 
    166                                 <p class="text-base leading-4 text-black-800 dark:text-black-300"><button  class="bg-blue-500 hover:bg-blue-700 text-white font-bold py-2 px-4 rounded">Докази</button></p>
    167 
    168                             </div>
    169                             <div class="py-4 border-b border-black-200 flex items-center justify-between">
    170                                 <p class="text-base leading-4 text-black-800 dark:text-black-300">Активен случај</p>
     187                                <p class="text-base leading-4 text-black-800 dark:text-black-300">
     188                                    {{ $case->c_status === 'A' ? 'Активен случај' : ($case->c_status === 'Z' ? 'Затворен случај' : 'Unknown Status') }}
     189                                </p>
    171190                                <div class="flex items-center justify-center">
    172                                     <p class="text-sm leading-none text-gray-600 dark:text-gray-300 mr-3">38.2</p>
    173 
    174                                     <img class="dark:hidden" src="https://tuk-cdn.s3.amazonaws.com/can-uploader/productDetail3-svg2.svg" alt="next">
    175                                     <img class="hidden dark:block" src="https://tuk-cdn.s3.amazonaws.com/can-uploader/productDetail3-svg2dark.svg" alt="next">
     191                                    <p class="text-sm leading-none text-gray-600 dark:text-gray-300 mr-3">Контролен број:{{$case->c_id}}</p>
     192
    176193                                </div>
    177194                            </div>
    178                             <button class="dark:bg-white dark:text-black-900 dark:hover:bg-black-100 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-gray-800 text-base flex items-center justify-center leading-none text-white bg-gray-800 w-full py-4 hover:bg-gray-700 focus:outline-none">
     195                            <button class="bg-blue-500   focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-blue-500 text-base flex items-center justify-center leading-none text-white bg-blue-500 w-full py-4 hover:bg-blue-700 focus:outline-none">
    179196                                <img class="mr-3 dark:hidden" src="https://tuk-cdn.s3.amazonaws.com/can-uploader/svg1.svg" alt="location">
    180197                                <img class="mr-3 hidden dark:block" src="https://tuk-cdn.s3.amazonaws.com/can-uploader/svg1dark.svg" alt="location">
    181                                ул.Рузвелтова бр.23 Скопје
     198                                {{$p_address}}
    182199                            </button>
    183                             <div>
    184                                 <p class="xl:pr-55 text-base lg:leading-tight leading-normal text-black-600 dark:text-black-300 mt-7">Додека автобусот се движеше по својата маршрута, мистериозниот патник, со лице заматено од сенки, се движеше кон задниот дел. Меѓу патниците беа разменети неколку љубопитни погледи, но повеќето беа изгубени во сопствените мисли, исцрпени по долг ден.
    185 
    186                                     Одеднаш, атмосферата се промени. Мистериозната фигура, која сега стои на патеката, откри блескав нож. Меѓу патниците настанала паника кога ја сфатиле тежината на ситуацијата. Возачот на автобусот, внимателен, удрил на сопирачките, со што автобусот запрел.
    187 
    188                                     Напаѓачот со злобно блесок во очите барал внимание од сите. Со ладен, пресметан глас, ја објавија намерата да извлечат пакет скриен меѓу патниците. Страв и збунетост се проширија низ автобусот додека патниците си разменија уплашени погледи.
    189 
    190                                     Меѓу патниците беше и една млада жена по име Марија, која се враќаше дома од својата работа доцна во ноќта. Без да знае, предметниот пакет бил сокриен во нејзиниот ранец. Напаѓачот, управуван од непознат мотив, тргнал кон Марија, а сјајот на ножот фрлал морничав сјај во слабо осветлениот автобус.
    191 
    192                                     Како што ескалираа тензиите, на бродот се нашол пензиониран детектив по име Роберт. Имајќи инстинкт за неволја, тој ја процени ситуацијата и дискретно ја набљудуваше драмата што се одвиваше. Чувствувајќи ја опасноста, тој суптилно им сигнализирал на другите патници, охрабрувајќи ги да останат смирени додека тој формулирал план.
    193 
    194                                     Марија, исплашена, но издржлива, реши да ги земе работите во свои раце. Со брз, дискретен потег, таа го активирала копчето за паника на телефонот, испраќајќи предупредување до локалните власти. Без знаење на напаѓачот, помошта била на пат.
    195 
    196                                     Автобусот стана тензично бојно поле на умови, бидејќи Роберт, Марија и другите патници работеа заедно за да го одвлечат вниманието на напаѓачот додека не дојде полицијата. Напаѓачот, кој стануваше сè пофрустриран, направи критична грешка, дозволувајќи им на патниците да ги совладаат и разоружаат токму кога полицијата упадна во автобусот.
    197 
    198                                     Бидејќи ситуацијата била под контрола, мотивот зад злосторството останал обвиен со мистерија. Полицијата го уапсила напаѓачот, а ранецот на Марија, во кој имало вреден, но загадочен пакет, станал фокусна точка на истрагата. Детективот Роберт, сега официјално вклучен, тргна на патување за да ги разоткрие слоевите на ова полноќно злосторство, решен да ја разоткрие вистината скриена во сенките на ноќта.</p>
    199                                 <p class="text-base leading-4 mt-7 text-black-600 dark:text-black-300">Product Code: 8BN321AF2IF0NYA</p>
    200                                 <p class="text-base leading-4 mt-4 text-black-600 dark:text-black-300">Length: 13.2 inches</p>
    201                                 <p class="text-base leading-4 mt-4 text-black-600 dark:text-black-300">Height: 10 inches</p>
    202                                 <p class="text-base leading-4 mt-4 text-black-600 dark:text-black-300">Depth: 5.1 inches</p>
    203                                 <p class="md:w-96 text-base leading-normal text-black-600 dark:text-black-300 mt-4">Composition: 100% calf leather, inside: 100% lamb leather</p>
    204                             </div>
    205                             <div>
    206                                 <div class="border-t border-b py-4 mt-7 border-gray-200">
    207                                     <div data-menu class="flex justify-between items-center cursor-pointer">
    208                                         <p class="text-base leading-4 text-gray-800 dark:text-gray-300">Shipping and returns</p>
    209                                         <button class="cursor-pointer focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-gray-400 rounded" role="button" aria-label="show or hide">
    210                                             <img class="transform dark:hidden" src="https://tuk-cdn.s3.amazonaws.com/can-uploader/productDetail3-svg4.svg" alt="dropdown">
    211                                             <img class="transform hidden dark:block" src="https://tuk-cdn.s3.amazonaws.com/can-uploader/productDetail3-svg4dark.svg" alt="dropdown">
    212                                         </button>
     200
     201
     202                            <h1 class="text-2xl">Изјави</h1>
     203
     204                            @foreach($statements as $statement)
     205                                <div class="container">
     206
     207                                <div class="card">
     208
     209                                    <p class=" text-left py-3 px-4">{{$statement->statement_date}}</p>
     210                                        <p class=" text-left py-3 px-4">{{$statement->description}}</p>
     211                                        <p class=" text-left py-3 px-4">{{$statement->incident_place}}</p>
    213212                                    </div>
    214                                     <div class="hidden pt-4 text-base leading-normal pr-12 mt-4 text-black-600 dark:text-gray-300" id="sect">You will be responsible for paying for your own shipping costs for returning your item. Shipping costs are nonrefundable</div>
    215213                                </div>
    216                             </div>
    217                             <div>
    218                                 <div class="border-b py-4 border-gray-200">
    219                                     <div data-menu class="flex justify-between items-center cursor-pointer">
    220                                         <p class="text-base leading-4 text-gray-800 dark:text-gray-300">Contact us</p>
    221                                         <button class="cursor-pointer focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-gray-400 rounded" role="button" aria-label="show or hide">
    222                                             <img class="transform dark:hidden" src="https://tuk-cdn.s3.amazonaws.com/can-uploader/productDetail3-svg4.svg" alt="dropdown">
    223                                             <img class="transform hidden dark:block" src="https://tuk-cdn.s3.amazonaws.com/can-uploader/productDetail3-svg4dark.svg" alt="dropdown">
    224                                         </button>
    225                                     </div>
    226                                     <div class="hidden pt-4 text-base leading-normal pr-12 mt-4 text-gray-600 dark:text-gray-300" id="sect">If you have any questions on how to return your item to us, contact us.</div>
    227                                 </div>
    228                             </div>
     214                            @endforeach
    229215                        </div>
    230216                    </div>
  • resources/views/cases.blade.php

    r6dec591 rd9c4096  
    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>
    32         <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">
    33             <i class="fas fa-plus mr-3"></i> Додади полицаец
    34         </button>
     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            <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">
     36                <i class="fas fa-plus mr-3"></i> <a href="/register-policeman">Додади полицаец</a>
     37            </button>
     38        @endif
    3539    </div>
    3640    <nav class="text-white text-base font-semibold pt-3">
     
    140144            <div class="w-full mt-12">
    141145                <p class="text-xl pb-3 flex items-center">
    142                     <i class="fas fa-list mr-3"></i> Случаи од станица Карпош - Скопје
     146                    <i class="fas fa-list mr-3"></i> Случаи од станица {{$p_address}}
    143147                </p>
    144148                <div class="bg-white overflow-auto">
  • resources/views/employees.blade.php

    r6dec591 rd9c4096  
    5353<aside class="relative bg-sidebar h-screen w-64 hidden sm:block shadow-xl">
    5454    <div class="p-6">
    55         <a href="#" class="text-white text-3xl font-semibold uppercase hover:text-gray-300">Началник</a>
    56         <button
    57             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">
    58             <i class="fas fa-plus mr-3"></i> Додади полицаец
    59         </button>
     55        @if (Session::get('is_policeman'))
     56            <a href="#" class="text-white text-3xl font-semibold uppercase hover:text-gray-300">Полицаец</a>
     57        @else
     58            <a href="#" class="text-white text-3xl font-semibold uppercase hover:text-gray-300">Началник</a>
     59            <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">
     60                <i class="fas fa-plus mr-3"></i> <a href="/register-policeman">Додади полицаец</a>
     61            </button>
     62        @endif
    6063    </div>
    6164    <nav class="text-white text-base font-semibold pt-3">
  • resources/views/filter.blade.php

    r6dec591 rd9c4096  
    109109<aside class="relative bg-sidebar h-screen w-64 hidden sm:block shadow-xl">
    110110    <div class="p-6">
    111         <a href="#" class="text-white text-3xl font-semibold uppercase hover:text-gray-300">Началник</a>
    112         <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">
    113             <i class="fas fa-plus mr-3"></i> Додади полицаец
    114         </button>
     111        @if (Session::get('is_policeman'))
     112            <a href="#" class="text-white text-3xl font-semibold uppercase hover:text-gray-300">Полицаец</a>
     113        @else
     114            <a href="#" class="text-white text-3xl font-semibold uppercase hover:text-gray-300">Началник</a>
     115            <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">
     116                <i class="fas fa-plus mr-3"></i> <a href="/register-policeman">Додади полицаец</a>
     117            </button>
     118        @endif
    115119    </div>
    116120    <nav class="text-white text-base font-semibold pt-3">
    117121        <a href="/" class="flex items-center text-white opacity-75 hover:opacity-100 py-4 pl-6 nav-item">
    118122            <i class="fas fa-tachometer-alt mr-3"></i>
    119             Сортирај граѓани
     123            Контролна табла
    120124        </a>
    121125        <a href="/employees" class="flex items-center text-white opacity-75 hover:opacity-100 py-4 pl-6 nav-item">
  • resources/views/register-policeman.blade.php

    r6dec591 rd9c4096  
    119119<aside class="relative bg-sidebar h-screen w-64 hidden sm:block shadow-xl">
    120120    <div class="p-6">
    121         <a href="#" class="text-white text-3xl font-semibold uppercase hover:text-gray-300">Началник</a>
    122         <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">
    123             <i class="fas fa-plus mr-3"></i> Додади полицаец
    124         </button>
     121        @if (Session::get('is_policeman'))
     122            <a href="#" class="text-white text-3xl font-semibold uppercase hover:text-gray-300">Полицаец</a>
     123        @else
     124            <a href="#" class="text-white text-3xl font-semibold uppercase hover:text-gray-300">Началник</a>
     125            <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">
     126                <i class="fas fa-plus mr-3"></i> <a href="/register-policeman">Додади полицаец</a>
     127            </button>
     128        @endif
    125129    </div>
    126130    <nav class="text-white text-base font-semibold pt-3">
     
    252256                                >
    253257                      </div>
    254 
    255                       <div class="mb-6">
    256                           <label class="block mb-2 uppercase font-bold text-xs text-gray-700"
    257                                  for="name"
     258                      <div class="mb-6">
     259                          <label class="block mb-2 uppercase font-bold text-xs text-gray-700"
     260                                 for="first_name"
    258261                          >
    259262                              Име
     
    262265                          <input class="border border-gray-400 p-2 w-full  text-gray-500"
    263266                                 type="text"
    264                                  name="name"
    265                                  value=""
    266                                  id="name"
     267                                 name="first_name"
     268                                 value="{{(Input::has('embg'))?? 'embg'}}"
     269                                 id="first_name"
    267270                                 required
    268271                                 disabled="disabled">
     
    275278                      <div class="mb-6">
    276279                          <label class="block mb-2 uppercase font-bold text-xs text-gray-700"
    277                                  for="lastname"
     280                                 for="last_name"
    278281                          >
    279282                              Презиме
     
    282285                          <input class="border border-gray-400 p-2 w-full text-gray-500"
    283286                                 type="text"
    284                                  name="lastname"
     287                                 name="last_name"
    285288                                 value=""
    286                                  id="lastname"
     289                                 id="last_name"
    287290                                 required
    288291                                 disabled="disabled" >
     
    361364<script src="https://cdnjs.cloudflare.com/ajax/libs/Chart.js/2.9.3/Chart.min.js" integrity="sha256-R4pqcOYV8lt7snxMQO/HSbVCFRPMdrhAFMH+vr9giYI=" crossorigin="anonymous"></script>
    362365
     366
    363367</body>
    364368</html>
  • resources/views/welcome.blade.php

    r6dec591 rd9c4096  
    3333                    @else
    3434                    <a href="#" class="text-white text-3xl font-semibold uppercase hover:text-gray-300">Началник</a>
     35                    <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">
     36                        <i class="fas fa-plus mr-3"></i> <a href="/register-policeman">Додади полицаец</a>
     37                    </button>
    3538                @endif
    36                 <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">
    37                     <i class="fas fa-plus mr-3"></i> Додади полицаец
    38                 </button>
    3939            </div>
    4040            <nav class="text-white text-base font-semibold pt-3">
  • routes/web.php

    r6dec591 rd9c4096  
    66use App\Http\Controllers\SessionsController;
    77use Illuminate\Support\Facades\Route;
     8use Illuminate\Support\Facades\Session;
    89
    910/*
     
    1920
    2021Route::get('/', function () {
     22    if(Session::get('pe_id') == null) {
     23        return view('login');
     24    }
    2125    return view('welcome');
    2226});
     
    3842
    3943Route::get('cases', [CrimeCaseController::class, 'cases'])->middleware('guest');
    40 Route::get('case', [CrimeCaseController::class, 'case'])->middleware('guest');
     44Route::get('case/{wildcard}', [CrimeCaseController::class, 'case'])->middleware('guest');
    4145
    4246Route::get('finished_cases', [CrimeCaseController::class, 'index'])->middleware('guest');
     
    4650Route::post('register-policeman', [OfficerController::class, 'register'])->middleware('guest');
    4751
    48 
     52Route::get('/get_person/{{embg}}', [PeopleController::class, 'get_person'])->middleware('guest');
Note: See TracChangeset for help on using the changeset viewer.