@extends('layouts.appmin')

@section('tajuk')
Ulasan Penolong Pegawai Kesihatan
@endsection

@section('css')

    <!-- Select2 -->
    <link rel="stylesheet" href="{{ asset('plugins/select2/css/select2.min.css') }}">
    <link rel="stylesheet" href="{{ asset('plugins/select2-bootstrap4-theme/select2-bootstrap4.min.css') }}">
<link href="{{ asset('css/jsapi-template-main.css') }}" rel="stylesheet" type="text/css"/>
<link href="https://js.arcgis.com/4.25/esri/css/main.css" rel="stylesheet" type="text/css" />
<style>
#viewDiv {
  padding: 0;
  margin: 0;
  height: 500px;
  width: 100%;
}
</style>
@endsection


@section('breadcrumb')
<ul class="breadcrumbs mb-3">
    <li class="nav-home">
        <a href="#">
        <i class="icon-home"></i>
        </a>
    </li>
    <li class="separator">
        <i class="icon-arrow-right"></i>
    </li>
    <li class="nav-item">
        <a href="#">Penjaja</a>
    </li>
    <li class="separator">
        <i class="icon-arrow-right"></i>
    </li>
    <li class="nav-item">
        <a href="#">Pemeriksaan Tapak</a>
    </li>
    <li class="separator">
        <i class="icon-arrow-right"></i>
    </li>
    <li class="nav-item">
        <a href="#">Papar Permohonan</a>
    </li>
</ul>
@endsection

@section('content')

    @if (session('success'))
        <div class="alert alert-success" role="alert">
            {{ session('success') }}
        </div>
    @endif  
    <div class="row mb-3">
        <div class="col-md-12">
            <a href="" class="btn btn-primary mx-2">Permohonan</a>
            <a href="{{route('ik.papar-pemeriksaan-map', [$permohonan->id])}}" class="btn btn-primary mx-2">Peta Lokasi</a>
            <a href="{{route('ik.papar-pemeriksaan-ulasan', [$permohonan->id])}}" class="btn btn-primary mx-2">Ulasan PPK</a>
            <a href="{{route('ik.papar-pemeriksaan-ulasan', [$permohonan->id])}}" class="btn btn-primary mx-2">Ulasan Pegawai</a>
            <a href="{{route('ik.papar-pemeriksaan-ulasan', [$permohonan->id])}}" class="btn btn-primary mx-2">Ulasan Pengarah</a>
        </div>
    </div>
<form action="{{route('ik.simpan-lokasi', [$permohonan->id])}}" method="post">
    @csrf
    <input type="hidden" name="permohonan_id" value="{{$permohonan->id}}">
    <div class="row">
        <div class="col-12">
          <div class="card card-round">
            <div class="card-header">
              <div class="card-head-row card-tools-still-right">
                <h4 class="card-title">Ulasan</h4>
              </div>
            </div> <!-- /.card-header -->
            <div class="card-body">
                    <div class="row">
                        <div class="col-md-3">
                            <div class="mb-3">
                                <label for="dt_periksa">Tarikh Pemeriksaan</label>
                                <input id="dt_periksa" class="form-control" type="text" name="dt_periksa" value="{{ old('dt_periksa', $permohonan?->ulasanIk?->dt_periksa) }}" autofocus autocomplete="dt_periksa"/>
                            </div>
                        </div> 
                    </div>
                    <div class="row">
                        <div class="col-md-4 mb-3">
                                <label for="latitude">a&#41; Lokasi Tempat berniaga</label>                                
                                <div class="form-check"> 
                                    <input class="form-check-input" type="radio" id="lokasi_niaga_sesuai" name="lokasi_niaga_sesuai" value="sesuai"> 
                                    <label class="form-check-label" for="lokasi_niaga_sesuai">Sesuai</label>      
                                </div>                       
                                <div class="form-check"> 
                                    <input class="form-check-input" type="radio" id="lokasi_niaga_tak_sesuai" name="lokasi_niaga_sesuai" value="tidak sesuai"> 
                                    <label class="form-check-label" for="lokasi_niaga_tak_sesuai">Tidak sesuai, kerana</label> 
                                    <textarea class="form-control" name="lokasi_niaga_taksesuai_sebab" id="lokasi_niaga_taksesuai_sebab"></textarea> 
                                </div>
                                
                        </div>
                        <div class="col-md-3 mb-3">
                                <label for="latitude">b&#41; Perniagaan dijalankan oleh</label>                                
                                <div class="form-check"> 
                                    <input class="form-check-input" type="radio" id="lokasi_niaga_sesuai" name="lokasi_niaga_sesuai" value="sesuai"> 
                                    <label class="form-check-label" for="lokasi_niaga_sesuai">Pemohon/Pelesen</label>      
                                </div>                       
                                <div class="form-check"> 
                                    <input class="form-check-input" type="radio" id="lokasi_niaga_tak_sesuai" name="lokasi_niaga_sesuai" value="tidak sesuai"> 
                                    <label class="form-check-label" for="lokasi_niaga_tak_sesuai">Orang Lain</label> 
                                </div>
                        </div>
                        <div class="col-md-5 mb-3">
                            <label for="latitude">c&#41; Pematuhan syarat</label>                                
                            <div class="form-check"> 
                                <input class="form-check-input" type="radio" id="lokasi_niaga_sesuai" name="lokasi_niaga_sesuai" value="sesuai"> 
                                <label class="form-check-label" for="lokasi_niaga_sesuai">Telah dipatuhi</label>      
                            </div>                       
                            <div class="form-check"> 
                                <input class="form-check-input" type="radio" id="lokasi_niaga_tak_sesuai" name="lokasi_niaga_sesuai" value="tidak sesuai"> 
                                <label class="form-check-label" for="lokasi_niaga_tak_sesuai">Belum dipatuhi</label> <br />
                                Perkara yang perlu dipatuhi :
                                <textarea class="form-control" name="lokasi_niaga_taksesuai_sebab" id="lokasi_niaga_taksesuai_sebab"></textarea> 
                            </div>
                        </div>
                    </div> 
                    <div class="row">
                        <div class="col-md-4 mb-3">
                            <div class="row">
                                <div class="col-md-12">
                                    <label for="latitude">d&#41; Pemprosesan makanan ditempat berniaga</label>                                
                                    <div class="form-check"> 
                                        <input class="form-check-input" type="radio" id="lokasi_niaga_sesuai" name="lokasi_niaga_sesuai" value="sesuai"> 
                                        <label class="form-check-label" for="lokasi_niaga_sesuai">Tiada (Hanya membungkus/menjual sahaja)</label>      
                                    </div>                       
                                    <div class="form-check"> 
                                        <input class="form-check-input" type="radio" id="lokasi_niaga_tak_sesuai" name="lokasi_niaga_sesuai" value="tidak sesuai"> 
                                        <label class="form-check-label" for="lokasi_niaga_tak_sesuai">Ada</label> 
                                    </div>
                                </div>
                                <div class="col-md-12">
                                    <strong>Jika ada:</strong>
                                    <table class="table mt-1">
                                        <tbody>
                                            <tr>
                                                <td>Memasak makanan</td>
                                                <td><input class="form-check-input" type="checkbox" id="memasak" name="memasak" value="1"></td>
                                            </tr>
                                            <tr>
                                                <td>Merebus makanan</td>
                                                <td><input class="form-check-input" type="checkbox" id="memasak" name="memasak" value="1"></td>
                                            </tr>
                                            <tr>
                                                <td>Menggoreng makanan</td>
                                                <td><input class="form-check-input" type="checkbox" id="memasak" name="memasak" value="1"></td>
                                            </tr>
                                            <tr>
                                                <td>Lain-lain
                                                        <input type="text" class="form-control" id="no_fail_lesen"
                                                        value="" />
                                                </td>
                                                <td><input class="form-check-input" type="checkbox" id="memasak" name="memasak" value="1"></td>
                                            </tr>
                                        </tbody>
                                    </table>
                                </div>
                            </div>    
                            <div class="row">
                                <div class="col-md-12">
                                    <label for="latitude">e&#41; Mendirikan bangunan/warung</label>                                
                                    <div class="form-check"> 
                                        <input class="form-check-input" type="radio" id="lokasi_niaga_sesuai" name="lokasi_niaga_sesuai" value="sesuai"> 
                                        <label class="form-check-label" for="lokasi_niaga_sesuai">Tiada (Hanya payung/meja sahaja)</label>      
                                    </div>                       
                                    <div class="form-check"> 
                                        <input class="form-check-input" type="radio" id="lokasi_niaga_tak_sesuai" name="lokasi_niaga_sesuai" value="tidak sesuai"> 
                                        <label class="form-check-label" for="lokasi_niaga_tak_sesuai">Ada</label> 
                                    </div>
                                </div>
                            </div>                            
                        </div>
                        <div class="col-md-4 mb-3">
                            <div class="row">
                                <div class="col-md-12">
                                    f&#41; Jika menggunakan kenderaan:
                                    <table class="table mt-1">
                                        <tbody>
                                            <tr>
                                                <td>Motosikal</td>
                                                <td><input class="form-check-input" type="checkbox" id="memasak" name="memasak" value="1"></td>
                                            </tr>
                                            <tr>
                                                <td>Kereta/Van</td>
                                                <td><input class="form-check-input" type="checkbox" id="memasak" name="memasak" value="1"></td>
                                            </tr>
                                            <tr>
                                                <td>Lori</td>
                                                <td><input class="form-check-input" type="checkbox" id="memasak" name="memasak" value="1"></td>
                                            </tr>
                                            <tr>
                                                <td>Basikal</td>
                                                <td><input class="form-check-input" type="checkbox" id="memasak" name="memasak" value="1"></td>
                                            </tr>
                                            <tr>
                                                <td>
                                                    
                                                        Lain-lain
                                                        <input type="text" class="form-control" id="no_fail_lesen"
                                                        value="" />
                                                     </td>
                                                <td><input class="form-check-input" type="checkbox" id="memasak" name="memasak" value="1"></td>
                                            </tr>
                                        </tbody>
                                    </table>
                                    <div class="form-group">
                                        <label for="no_fail_lesen">No. Pendaftaran Kenderaan</label>
                                        <input type="text" class="form-control" id="no_fail_lesen"
                                        value="" />
                                    </div>
                                </div>
                            </div>            
                        </div>
                        <div class="col-md-4 mb-3">  
                            <div class="row">
                                <div class="col-md-12">
                                    <div class="form-group">
                                        <label for="no_fail_lesen">g&#41; Tarikh mula berniaga</label>
                                        <input type="text" class="form-control" id="no_fail_lesen"
                                        value="" />
                                    </div>
                                    <div class="form-group">
                                        <label for="no_fail_lesen">Masa berniaga</label>
                                        <input type="text" class="form-control" id="no_fail_lesen"
                                        value="" />
                                    </div>
                                </div>
                            </div>
                            <div class="row">
                                <div class="col-md-12">
                                    h&#41; Kebersihan semasa berniaga:
                                    <table class="table mt-1">
                                        <tbody>
                                            <tr>
                                                <td>Kebersihan diri</td>
                                                <td>
                                                    <div class="form-check">
                                                        <input class="form-check-input" type="radio" name="cara_jana" id="cara_jana_epbt" />
                                                        <label class="form-check-label" for="cara_jana_epbt" >Memuaskan</label>
                                                    </div>
                                                    <div class="form-check">
                                                        <input class="form-check-input" type="radio" name="cara_jana" id="cara_jana_mylesen" />
                                                        <label class="form-check-label" for="cara_jana_mylesen" >Tidak</label>                                                            
                                                    </div>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td>Kebersihan makanan</td>
                                                <td>
                                                    <div class="form-check">
                                                        <input class="form-check-input" type="radio" name="cara_jana" id="cara_jana_epbt" />
                                                        <label class="form-check-label" for="cara_jana_epbt" >Memuaskan</label>
                                                    </div>
                                                    <div class="form-check">
                                                        <input class="form-check-input" type="radio" name="cara_jana" id="cara_jana_mylesen" />
                                                        <label class="form-check-label" for="cara_jana_mylesen" >Tidak</label>                                                            
                                                    </div>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td>Kebersihan kawasan</td>
                                                <td>
                                                    <div class="form-check">
                                                        <input class="form-check-input" type="radio" name="cara_jana" id="cara_jana_epbt" />
                                                        <label class="form-check-label" for="cara_jana_epbt" >Memuaskan</label>
                                                    </div>
                                                    <div class="form-check">
                                                        <input class="form-check-input" type="radio" name="cara_jana" id="cara_jana_mylesen" />
                                                        <label class="form-check-label" for="cara_jana_mylesen" >Tidak</label>                                                            
                                                    </div>
                                                </td>
                                            </tr>
                                        </tbody>
                                    </table>
                                </div>
                            </div>
                        </div>
                    </div> 
                    <div class="row">
                        <div class="col-md-12 mb-3">
                            <div class="form-group">
                                <label for="no_fail_lesen">i&#41; Laporan kebersihan kawasan/tapak selepas berniaga</label>
                                <textarea class="form-control" id="makanan" rows="2"></textarea>
                            </div>
                        </div>
                    </div> 
            </div>
          </div>
        </div> <!-- /.col -->               
    </div> <!--end::Row-->
    <div class="row">
        <div class="col-12">
          <div class="card card-round">
            <div class="card-header">
              <div class="card-head-row card-tools-still-right">
                <h4 class="card-title">Cadangan</h4>
              </div>
            </div> <!-- /.card-header -->
            <div class="card-body">
                <table class="table mt-1">
                    <tbody>
                        <tr>
                            <td class="align-top"><input class="form-check-input" type="checkbox" id="memasak" name="memasak" value="1"></td>
                            <td>
                                <strong>Tiada halangan</strong> dengan syarat : 
                                <textarea class="form-control" id="makanan" rows="2"></textarea>
                                <div class="form-check">
                                    <input class="form-check-input" type="checkbox" name="cara_jana" id="cara_jana_epbt" />
                                    <label class="form-check-label" for="cara_jana_epbt" >Notis yang telah dikeluarkan perlu dipatuhi</label>
                                </div>
                            </td>
                        </tr>
                        <tr>
                            <td class="align-top"><input class="form-check-input" type="checkbox" id="memasak" name="memasak" value="1"></td>
                            <td>
                                <strong>Tidak menyokong</strong> atas sebab : 
                                <textarea class="form-control" id="makanan" rows="2"></textarea>
                                <div class="form-check">
                                    <input class="form-check-input" type="checkbox" name="cara_jana" id="cara_jana_epbt" />
                                    <label class="form-check-label" for="cara_jana_epbt" >Dirujuk Jabatan Penguatkuasa untuk tindakan : </label>
                                    <textarea class="form-control" id="makanan" rows="2"></textarea>
                                </td>
                        </tr>
                        <tr>
                            <td class="align-top"><input class="form-check-input" type="checkbox" id="memasak" name="memasak" value="1"></td>
                            <td><strong>Permohonan/Lesen dibatalkan</strong> kerana tamat perniagaan</td>
                        </tr>
                    </tbody>
                </table>
            </div>          
          </div>
        </div> <!-- /.col -->               
    </div> <!--end::Row-->
    <div class="row justify-content-center">
        <div class="col-12">
                <input id="simpan" class="btn btn-secondary" type="submit" name="simpan" value="Simpan"/>
        </div> <!-- /.col -->               
    </div> <!--end::Row-->
</form>
@endsection

@section('js')
  <!-- Select2 -->
    <script src="{{ asset('plugins/select2/js/select2.full.min.js') }}"></script>
@endsection