Created a PDF viewer component with modal functionality using PDFObject library. Added detailed views for Permohonan and Print pages, displaying relevant information about permohonan requests and debenture details.
190 lines
8.4 KiB
PHP
190 lines
8.4 KiB
PHP
@extends('layouts.main')
|
|
|
|
@section('breadcrumbs')
|
|
{{ Breadcrumbs::render(request()->route()->getName()) }}
|
|
@endsection
|
|
|
|
@section('content')
|
|
<div class="w-full grid gap-5 lg:gap-7.5 mx-auto">
|
|
<div class="flex gap-5 flex-row w-full">
|
|
<div class="card flex-1">
|
|
<div class="card-header" id="advanced_settings_appearance">
|
|
<h3 class="card-title">
|
|
Data Permohonan
|
|
</h3>
|
|
</div>
|
|
<div class="card-body lg:py-7.5 grid grid-cols-3">
|
|
<div class="mb-5">
|
|
<h3 class="text-md font-medium text-gray-900">
|
|
Nomor Register Permohonan:
|
|
</h3>
|
|
<span class="text-2sm text-gray-700">
|
|
{{ $permohonan->nomor_registrasi }}
|
|
</span>
|
|
</div>
|
|
|
|
<div class="mb-5">
|
|
<h3 class="text-md font-medium text-gray-900">
|
|
Pemohon:
|
|
</h3>
|
|
<span class="text-2sm text-gray-700">
|
|
{{ $permohonan->user->nik }} | {{ $permohonan->user->name }} | {{ $permohonan->user->branch->name }}
|
|
</span>
|
|
</div>
|
|
|
|
<div class="mb-5">
|
|
<h3 class="text-md font-medium text-gray-900">
|
|
Tujan Permohonan:
|
|
</h3>
|
|
<span class="text-2sm text-gray-700">
|
|
{{ $permohonan->tujuanPenilaian->name }}
|
|
</span>
|
|
</div>
|
|
|
|
</div>
|
|
</div>
|
|
|
|
<div class="card flex-1">
|
|
<div class="card-header" id="advanced_settings_appearance">
|
|
<h3 class="card-title">
|
|
Fasilitas Kredit
|
|
</h3>
|
|
</div>
|
|
<div class="card-body lg:py-7.5 grid grid-cols-3">
|
|
<div class="mb-5">
|
|
<h3 class="text-md font-medium text-gray-900">
|
|
Jenis Fasilitas
|
|
</h3>
|
|
<span class="text-2sm text-gray-700">
|
|
{{ $permohonan->jenisFasilitasKredit->name }}
|
|
</span>
|
|
</div>
|
|
|
|
<div class="mb-5">
|
|
<h3 class="text-md font-medium text-gray-900">
|
|
Nilai Plafond:
|
|
</h3>
|
|
<span class="text-2sm text-gray-700">
|
|
{{ $permohonan->nilaiPlafond->name }}
|
|
</span>
|
|
</div>
|
|
|
|
<div class="mb-5">
|
|
<h3 class="text-md font-medium text-gray-900">
|
|
Nilai NJOP:
|
|
</h3>
|
|
<span class="text-2sm text-gray-700">
|
|
{{ $permohonan->nilai_njop }}
|
|
</span>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="card min-w-full">
|
|
<div class="card-header">
|
|
<h3 class="card-title">
|
|
Detail Debutur
|
|
</h3>
|
|
</div>
|
|
<div class="card-table scrollable-x-auto pb-3">
|
|
<div class="grid grid-cols-1 xl:grid-cols-2 gap-5 lg:gap-7.5">
|
|
<div class="col-span-1">
|
|
<table class="table align-middle text-sm text-gray-500">
|
|
<tr>
|
|
<td class="py-2 text-gray-600 font-normal">
|
|
Name
|
|
</td>
|
|
<td class="py-2 text-gray-800 font-normaltext-sm">
|
|
{{ $permohonan->debiture->name ?? "" }}
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td class="py-3">
|
|
Email
|
|
</td>
|
|
<td class="py-3 text-gray-700 text-2sm font-normal">
|
|
{{ $permohonan->debiture->email ?? "" }}
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td class="py-3">
|
|
Phone
|
|
</td>
|
|
<td class="py-3 text-gray-700 text-2sm font-normal">
|
|
{{ $permohonan->debiture->phone ?? "" }}
|
|
</td>
|
|
</tr>
|
|
|
|
<tr>
|
|
<td class="py-3 text-gray-600 font-normal">
|
|
Address
|
|
</td>
|
|
<td class="py-3 text-gray-700 text-sm font-normal">
|
|
{{ $permohonan->debiture->address ?? "" }}
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td class="py-3 text-gray-600 font-normal">
|
|
|
|
</td>
|
|
<td class="py-3 text-gray-700 text-sm font-normal">
|
|
{{ $permohonan->debiture->village->name ?? "" }}, {{ $permohonan->debiture->district->name ?? "" }}, {{ $permohonan->debiture->city->name ?? "" }}, {{ $permohonan->debiture->province->name ?? "" }} - {{ $permohonan->debiture->village->postal_code ?? "" }}
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
<div class="col-span-1">
|
|
<table class="table align-middle text-sm text-gray-500">
|
|
<tr>
|
|
<td class="py-3 text-gray-600 font-normal">
|
|
Cabang
|
|
</td>
|
|
<td class="py-2 text-gray-800 font-normaltext-sm">
|
|
{{ $permohonan->debiture->branch->name ?? "" }}
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td class="py-3 text-gray-600 font-normal">
|
|
CIF
|
|
</td>
|
|
<td class="py-2 text-gray-800 font-normaltext-sm">
|
|
{{ $permohonan->debiture->cif ?? "" }}
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td class="py-3 text-gray-600 font-normal">
|
|
Nomor Rekening
|
|
</td>
|
|
<td class="py-3 text-gray-700 text-sm font-normal">
|
|
{{ $permohonan->debiture->nomor_rekening ?? "" }}
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td class="py-3">
|
|
NPWP
|
|
</td>
|
|
<td class="py-3 text-gray-700 text-2sm font-normal">
|
|
{{ $permohonan->debiture->npwp ?? "" }}
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
@include('lpj::component.detail-jaminan')
|
|
|
|
<div class="card">
|
|
<form action="{{ route('permohonan.print', $permohonan->id) }}" method="GET">
|
|
<input type="hidden" name="_method" value="PUT">
|
|
@csrf
|
|
<div class="card-footer flex justify-end">
|
|
<button type="submit" name="status" value="print" class="btn btn-success">
|
|
<i class="ki-filled ki-printer mr-2"></i> Print Laporan
|
|
</button>
|
|
</div>
|
|
</form>
|
|
</div>
|
|
</div>
|
|
@endsection
|