index.blade.php 5.34 KB
Newer Older
Siti Aisah committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28
@extends('layouts.master')
@section('content')
<div class="row">
    <div class="col-md-12">
        <div class="card">
            <div class="card-header">
                <h4 class="card-title">Daftar Reviewer</h4>
            </div>
            <div class="card-body">
                <div class="card-text">
                    <div class="row">
                        <div class="col-md-8">
                            {{-- @livewire('admin.masters.registrasi.add-registrasi-component') --}}
                        </div>
                        <div class="col-md-4 text-right">
                            {{-- <div class="row">
                                <label class="col-sm-3 col-form-label"></label>
                                <label class="col-sm-3 col-form-label">Cari : </label>
                                <div class="col-sm-6">
                                    <input type="text" class="form-control align-right" placeholder="Search" wire:model="keyword">
                                </div>
                            </div> --}}
                        </div>
                    </div>
                </div>
            </div>

            <div class="table-responsive mb-4">
29
                <table id="datatable" class="table data-table table-hover" style="width:100%">
Siti Aisah committed
30 31
                    <thead>
                        <tr>
32
                            <th>No</th>
33
                            {{-- <th>ID Pengajuan</th> --}}
34
                            <th style="text-align: left">File SK</th>
Siti Aisah committed
35
                            <th style="text-align: left">Nama/NIP</th>
Siti Aisah committed
36 37 38 39
                            <th style="text-align: left">Judul</th>
                            <th style="text-align: left">Tahun</th>
                            <th style="text-align: left">Klasifikasi</th>
                            <th style="text-align: left">File EC</th>
40
                            <th style="text-align: left">Kategori</th>
Siti Aisah committed
41 42 43 44
                        </tr>
                    </thead>
                    <tbody>
                        @php
45
                            $no = 1;
46 47 48 49 50
                            $nomorsurat = $penelaah[0]->no_sk;
                            $no_surat = explode('/', $nomorsurat);
                            $noagenda = $no_surat[0];
                            $tahun = $no_surat[3];
                            $nama_file = app(App\Http\Controllers\Admin\SakuController::class)->getFileName($tahun, $noagenda);
Siti Aisah committed
51
                        @endphp
52
                        @foreach($penelaah as $key => $item)
53 54 55 56 57 58 59 60 61 62 63 64
                        @php
                            // $pengajuan = DB::table('tr_pengajuan')->where('id',$item->id_pengajuan)->first();
                            if($item->no_sk == $nomorsurat){
                                $namafile = $nama_file;
                            }
                            else{
                                $nosurat = explode('/', $item->no_sk);
                                $noagenda = $nosurat[0];
                                $tahun = $nosurat[3];
                                $namafile = app(App\Http\Controllers\Admin\SakuController::class)->getFileName($tahun, $noagenda);
                            }
                        @endphp
Siti Aisah committed
65
                            <tr>
66 67 68 69 70 71 72 73
                                <td>{{ $no }}</td>
                                {{-- <td>{{ $item->id_pengajuan_epk }}</td> --}}
                                <td style="text-align: left"><a href="https://e-office.unesa.ac.id/dokumen/surat_keluar/{{$namafile}}" target="_blank"><img src="{{ url('assets/img/icons/misc/pdf.png') }}" alt="pdf" height="60" class="me-3" /></a></td>
                                <td style="text-align: left">{{ $item->nama }}<br>
                                    <strong>{{ $item->nip }}</strong></td>
                                <td style="text-align: left">{{ $item->judul }}</td>
                                <td style="text-align: left">{{ $item->tahun }}</td>
                                <td style="text-align: left">{{ $item->klasifikasi }}</td>
Siti Aisah committed
74
                                <td style="text-align: left">
75 76
                                @if(!empty($item->file_ec))
                                    <strong><a href="https://sipeka.unesa.ac.id/sipeka/file/{!!$item->file_ec!!}" target="_blank" class="btn btn-success btn-md">Lihat</a></strong>
Siti Aisah committed
77 78
                                @endif
                                </td>
79
                                {{-- @php
Siti Aisah committed
80
                                    $kategori = DB::table('ms_kategori')->where('id',$pengajuan->id_kategori)->first();
81
                                @endphp --}}
82
                                <td style="text-align: left">{{ $item->nama_kategori }}</td>
Siti Aisah committed
83
                            </tr>
84 85 86
                            @php
                                $no++;
                            @endphp
Siti Aisah committed
87 88 89 90 91 92 93 94
                        @endforeach
                    </tbody>
                </table>
            </div>
        </div>
    </div>
</div>
@push('js')
95 96 97 98 99 100 101 102 103 104 105
<!-- Include DataTable JS -->
<script src="https://code.jquery.com/jquery-3.6.0.min.js"></script>
<script src="https://cdn.datatables.net/1.12.1/js/jquery.dataTables.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/feather-icons"></script>
<script>
    $(document).ready(function() {
        $('#datatable').DataTable();
    });

    feather.replace();
</script>
Siti Aisah committed
106 107
@endpush
@stop