@extends('layouts.appmin')

@section('tajuk')
Pemeriksaan Tapak Permohonan Lesen Penjaja
@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="{{route('admin.papar', [$permohonan->id])}}" class="btn btn-primary mx-2">Permohonan</a>
            <a href="{{route('admin.papar-map', [$permohonan->id])}}" class="btn btn-primary mx-2">Peta Lokasi</a>
            <a href="{{route('admin.papar-dokumen', [$permohonan->id])}}" class="btn btn-primary mx-2">Dokumen</a>
            <a href="{{route('admin.papar-wangproses', [$permohonan->id])}}" class="btn btn-primary mx-2">Wang Proses</a>
            <a href="{{route('admin.papar-ulasan', [$permohonan->id])}}" class="btn btn-primary mx-2">Borang Ulasan</a>
            <a href="{{route('admin.papar-cadangan-pegawai', [$permohonan->id])}}" class="btn btn-primary mx-2">Cadangan Pegawai</a>
        </div>
    </div>
    @if($show == 'utama')
        @include('admin.penjaja.partials.pemohon_ssm')
    @elseif($show == 'lokasi')
        @include('admin.penjaja.partials.lokasi')
    @elseif($show == 'dokumen')
        @include('admin.penjaja.partials.dokumen')
    @elseif($show == 'wang proses')
        @include('admin.penjaja.partials.wangproses_nofail')
    @elseif($show == 'ulasan ik')
        @include('admin.penjaja.partials.ulasan')
    @elseif($show == 'cadangan pegawai')
        @include('admin.penjaja.partials.cadangan_pegawai')
    @endif
@endsection

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

@endsection