

<?php $__env->startSection('title', 'Pengaduan'); ?>

<?php $__env->startSection('content'); ?>
<main id="main" class="martop">

    <section class="inner-page">
      <div class="container ">
        <!-- <div class="title text-center mb-5">
            <h3 class="fw-bold">Layanan Pengaduan Masyarakat Sagalaherang</h3>
            <h5 class="fw-normal">Sampaikan laporan Anda langsung kepada instansi pemerintah berwenang</h5>
        </div> -->

        <div class="row">
            <div class="col-md-4">
                <div class="card card-responsive p-4 border-0 shadow rounded mx-auto">
                    <h5><b>Data Pelapor</b></h5>
                    <p>
                    <?php echo e($pengaduan->user->name); ?> <br>
                    <?php echo e(Carbon\Carbon::parse($pengaduan->tgl_kejadian)->format('d F Y')); ?> <br>
                    </p>
               </div>
            </div>
            <div class="col-md-8">
                <div class="card card-responsive p-4 border-0 shadow rounded mx-auto text-center">
                    <img src="<?php echo e($pengaduan->foto); ?>" alt="">
                    <h3><?php echo e($pengaduan->judul_laporan); ?></h3>
                    <p>
                        <?php if($pengaduan->status == '0'): ?>
                            <span class="text-sm text-white p-1 bg-danger">Pending</span>
                        <?php elseif($pengaduan->status == 'proses'): ?>
                            <span class="text-sm text-white p-1 bg-warning">Proses</span>
                        <?php else: ?>
                            <span class="text-sm text-white p-1 bg-success">Selesai</span>
                        <?php endif; ?>
                    </p>
                    <p><?php echo e($pengaduan->isi_laporan); ?></p>
                    <span class="text-sm badge badge-warning">Proses</span>
               </div>
            </div>
        </div>



      </div>
    </section>

  </main><!-- End #main -->
<?php $__env->stopSection(); ?>

<!-- <?php $__env->startPush('addon-script'); ?>
    <?php if(!auth('masyarakat')->check()): ?>
        <script>
            Swal.fire({
                title: 'Peringatan!',
                text: "Anda harus login terlebih dahulu!",
                icon: 'warning',
                confirmButtonColor: '#28B7B5',
                confirmButtonText: 'Masuk',
                allowOutsideClick: false
                }).then((result) => {
                if (result.isConfirmed) {
                    window.location.href = '<?php echo e(route('user.masuk')); ?>';
                }else{
                    window.location.href = '<?php echo e(route('user.masuk')); ?>';
                }
                });
        </script>
    <?php elseif(auth('masyarakat')->user()->email_verified_at == null && auth('masyarakat')->user()->telp_verified_at == null): ?>
        <script>
            Swal.fire({
                title: 'Peringatan!',
                text: "Akun belum diverifikasi!",
                icon: 'warning',
                confirmButtonColor: '#28B7B5',
                confirmButtonText: 'Ok',
                allowOutsideClick: false
                }).then((result) => {
                if (result.isConfirmed) {
                    window.location.href = '<?php echo e(route('user.masuk')); ?>';
                }else{
                    window.location.href = '<?php echo e(route('user.masuk')); ?>';
                }
                });
        </script>
    <?php endif; ?>

    <?php if(session()->has('pengaduan')): ?>
        <script>
            Swal.fire({
                title: 'Pemberitahuan!',
                text: '<?php echo e(session()->get('pengaduan')); ?>',
                icon: '<?php echo e(session()->get('type')); ?>',
                confirmButtonColor: '#28B7B5',
                confirmButtonText: 'OK',
            });
        </script>
    <?php endif; ?>
<?php $__env->stopPush(); ?> -->

<?php echo $__env->make('layouts.app', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH C:\xampp\htdocs\app-pengaduan-masyarakat\resources\views/pages/user/detail.blade.php ENDPATH**/ ?>