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

    <div class="pagetitle">
      <h1>Mutasi Saldo</h1>
      <nav>
        <ol class="breadcrumb">
          <li class="breadcrumb-item"><a>Dashboard</a></li>
          <li class="breadcrumb-item"><a>Keuangan</a></li>
          <li class="breadcrumb-item active">Mutasi Saldo</li>
        </ol>
      </nav>
    </div><!-- End Page Title -->

    <section class="section dashboard">
      <?php if(Session::get('msg')): ?>
      <div class="alert alert-success alert-dismissible fade show" role="alert">
          <i class="bi bi-check-circle me-1"></i>
                <?php echo e(Session::get('msg')); ?>

          <button type="button" class="btn-close" data-bs-dismiss="alert" aria-label="Close"></button>
      </div>
      <?php endif; ?>


      <div class="row">
        <div class="col-lg-12">
          <div class="card">
            <div class="card-body">
              <h5 class="card-title">Data Mutasi Saldo</h5>
              <br>
              <br>
              <!-- Default Table -->
              <table class="table" id="table">
                <thead>
                  <tr>
                    <th scope="col">#</th>
                    <th scope="col">Waktu</th>
                    <th scope="col">Nominal</th>
                    <th scope="col">Deskripsi</th>
                    <th scope="col">Saldo Akhir</th>
                </thead>
                <tbody>
                  <?php 
                    $i = 1;
                  ?>
                  <?php $__currentLoopData = $data; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $datas): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                  <tr>
                    <th scope="row"><?php echo e($i++); ?></th>
                    <td><?php echo e($datas->created_at); ?></td>
                    <?php if($datas->type == 1): ?>
                      <td><span class="badge bg-success">IN</span>Rp. <?php echo e(number_format($datas->nominal,2,',','.')); ?></td>
                    <?php endif; ?>
                    <?php if($datas->type == 0): ?>
                      <td><span class="badge bg-danger">OUT</span>Rp. <?php echo e(number_format($datas->nominal,2,',','.')); ?></td>
                    <?php endif; ?>
                    <td><?php echo e($datas->description); ?></td>
                    <td>Rp. <?php echo e(number_format($datas->last_balance,2,',','.')); ?></td>
                  </tr>
                  <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>  
                </tbody>
              </table>
              <!-- End Default Table Example -->
            </div>
          </div>
        </div>
      </div>
    </section>

  </main><!-- End #main -->
<?php $__env->stopSection(); ?>
<?php echo $__env->make('dashboard.layout', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH D:\PT. DAHA JAYABAYA TEKNOLOGI\Project\tpscmalang\resources\views/dashboard/mutation.blade.php ENDPATH**/ ?>