fix show page document pbg
This commit is contained in:
50
resources/views/pbg-task-attachment/show.blade.php
Normal file
50
resources/views/pbg-task-attachment/show.blade.php
Normal file
@@ -0,0 +1,50 @@
|
||||
@extends('layouts.vertical', ['subtitle' => $title])
|
||||
|
||||
@section('content')
|
||||
@include('layouts.partials.page-title', ['title' => 'Data', 'subtitle' => 'PBG'])
|
||||
|
||||
<div class="row mb-4">
|
||||
<div class="col-sm-12">
|
||||
<div class="card border shadow-sm">
|
||||
<div class="card-body">
|
||||
<h5 class="mb-3">{{ $title }}</h5>
|
||||
<p><strong>Document Number:</strong> {{ $pbg->document_number }}</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<div class="col-sm-12">
|
||||
<div class="card border shadow-sm">
|
||||
<div class="card-body">
|
||||
@php
|
||||
$extension = strtolower(pathinfo($data->file_name, PATHINFO_EXTENSION));
|
||||
@endphp
|
||||
|
||||
@if (in_array($extension, ['jpg', 'jpeg', 'png']))
|
||||
<div class="text-center">
|
||||
<img
|
||||
src="{{ asset('storage/' . $data->file_path) }}"
|
||||
alt="{{ $data->file_name }}"
|
||||
class="img-fluid border rounded"
|
||||
style="max-height: 600px;"
|
||||
>
|
||||
</div>
|
||||
@elseif ($extension === 'pdf')
|
||||
<iframe
|
||||
src="{{ asset('storage/' . $data->file_path) }}"
|
||||
width="100%"
|
||||
height="700px"
|
||||
style="border: none;"
|
||||
></iframe>
|
||||
@else
|
||||
<div class="alert alert-warning">
|
||||
Unsupported file type: <strong>{{ $extension }}</strong>
|
||||
</div>
|
||||
@endif
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@endsection
|
||||
@@ -99,7 +99,6 @@
|
||||
<button type="button" class="btn-close" data-bs-dismiss="modal"></button>
|
||||
</div>
|
||||
<div class="modal-body">
|
||||
<p id="modal-task-id">Task ID: <span></span></p>
|
||||
<div class="mb-3">
|
||||
<form action="/upload-bukti-bayar" method="POST" class="dropzone" id="dropzoneBuktiBayar">
|
||||
<div class="dz-message needsclick">
|
||||
@@ -137,7 +136,6 @@
|
||||
<button type="button" class="btn-close" data-bs-dismiss="modal"></button>
|
||||
</div>
|
||||
<div class="modal-body">
|
||||
<p id="modal-task-id">Task ID: <span></span></p>
|
||||
<div class="mb-3">
|
||||
<form action="/upload-berita-acara" method="POST" class="dropzone" id="dropzoneBeritaAcara">
|
||||
<div class="dz-message needsclick">
|
||||
|
||||
Reference in New Issue
Block a user