akuntansi-sia/resources/views/partials/table_neraca.blade.php

44 lines
2.1 KiB
PHP

<table class="table table-bordered table-striped">
<thead class="bg-warning text-dark">
<tr>
<th>Pendapatan</th>
<th class="text-right">Jumlah (Rp)</th>
</tr>
</thead>
<tbody>
<tr>
<td>Total Penjualan (Pendapatan)</td>
<td class="text-right text-success">+ Rp{{ number_format($data['penjualan'], 0, ',', '.') }}</td>
</tr>
<tr>
<td>Total Pembelian (Harga Pokok)</td>
<td class="text-right text-danger">- Rp{{ number_format($data['pembelian'], 0, ',', '.') }}</td>
</tr>
<tr class="bg-light">
<td><strong>Laba Kotor</strong></td>
<td class="text-right"><strong>Rp{{ number_format($data['laba_kotor'], 0, ',', '.') }}</strong></td>
</tr>
<tr>
<td colspan="2" class="text-muted bg-white"><i class="fas fa-wallet mr-2"></i><strong>Beban Biaya</strong></td>
</tr>
@forelse($data['operational'] as $op)
<tr>
<td class="pl-4"><i class="fas fa-caret-right mr-2 text-muted"></i>{{ $op->label }} @if(isset($type) && $type == 'total') <small class="text-muted">({{ $op->branch }})</small> @endif</td>
<td class="text-right text-danger">- Rp{{ number_format($op->amount, 0, ',', '.') }}</td>
</tr>
@empty
<tr>
<td colspan="2" class="text-center text-muted small py-3">Belum ada pengeluaran operasional yang dicatat.</td>
</tr>
@endforelse
<tr class="bg-light">
<td class="pl-4"><strong>Total Beban Biaya</strong></td>
<td class="text-right text-danger"><strong>- Rp{{ number_format($data['total_operational'], 0, ',', '.') }}</strong></td>
</tr>
<tr style="background: linear-gradient(90deg, #ff8a0022 0%, #ff5e0022 100%);">
<td class="py-3"><strong style="font-size: 1.1rem; color: #ff5e00;">Laba Bersih</strong></td>
<td class="text-right py-3"><strong style="font-size: 1.1rem; color: #ff5e00;">Rp{{ number_format($data['laba_bersih'], 0, ',', '.') }}</strong></td>
</tr>
</tbody>
</table>