<!DOCTYPE html>
<html>
<head>

<meta charset="utf-8">

<style>

body{
font-family: Arial;
}

table{
width:100%;
border-collapse:collapse;
}

th,td{
border:1px solid black;
padding:8px;
}

</style>

</head>

<body>

<h2>Laporan Penjualan Tiket Konser</h2>

<p>
Total Pendapatan :
Rp <?php echo e(number_format($totalPendapatan,0,',','.')); ?>

</p>

<p>
Total Tiket Terjual :
<?php echo e($totalTiket); ?>

</p>

<table>

<tr>

<th>Pembeli</th>
<th>Event</th>
<th>Jumlah</th>
<th>Total</th>
<th>Status</th>

</tr>

<?php $__currentLoopData = $transaksis; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $trx): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>

<tr>

<td><?php echo e($trx->nama_pembeli); ?></td>

<td><?php echo e($trx->tiket->event->nama_event ?? '-'); ?></td>

<td><?php echo e($trx->jumlah); ?></td>

<td>
Rp <?php echo e(number_format($trx->total_harga,0,',','.')); ?>

</td>

<td><?php echo e($trx->status); ?></td>

</tr>

<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>

</table>

</body>
</html><?php /**PATH D:\tugas pa asur\konser-ticket\resources\views/laporan/pdf.blade.php ENDPATH**/ ?>