@extends('layouts.app') @section('title', 'RAB Kegiatan') @section('content')

Administrasi KegiatanRAB & Realisasi

Anggaran Kegiatan

{{ $activity->judul_kegiatan }} · kelola rencana biaya, pengeluaran aktual, dan sisa anggaran.

@if (session('status'))
{{ session('status') }}
@endif @if ($errors->any()) @endif
@foreach ([['Rencana anggaran', $totalBudget, 'bg-blue-50 text-blue-700', 'bi-wallet2', 'budget-summary-total'], ['Realisasi', $totalRealization, 'bg-violet-50 text-violet-700', 'bi-arrow-repeat', 'budget-summary-realization'], ['Sisa anggaran', $totalBudget - $totalRealization, $totalBudget - $totalRealization < 0 ? 'bg-rose-50 text-rose-700' : 'bg-emerald-50 text-emerald-700', 'bi-piggy-bank', 'budget-summary-balance']] as [$label, $amount, $color, $icon, $id])

{{ $label }}

Rp {{ number_format($amount, 0, ',', '.') }}

@endforeach

Rincian anggaran

Perubahan tersimpan otomatis saat Anda mengisi setiap baris.

@if ($canManage) Tersimpan otomatis @endif
@if ($canManage)@endif @foreach ($items as $item) @php($rowForm = 'budget-row-'.$item->id) @if ($canManage) @endif @endforeach @if ($canManage) @elseif ($items->isEmpty()) @endif @if ($canManage)@endif
No. Nama item Volume Satuan Harga satuan Realisasi Jumlah RAB SaldoStatus
{{ $loop->iteration }} Rp {{ number_format($item->subtotal, 0, ',', '.') }} $item->saldo < 0, 'text-emerald-700' => $item->saldo >= 0]) data-row-balance>Rp {{ number_format($item->saldo, 0, ',', '.') }}
@csrf @method('DELETE')
Tambah item anggaran baru

Belum ada item anggaran

TOTALRp {{ number_format($totalBudget, 0, ',', '.') }} $totalBudget < $totalRealization, 'text-emerald-700' => $totalBudget >= $totalRealization])>Rp {{ number_format($totalBudget - $totalRealization, 0, ',', '.') }}
@if ($canManage) @push('scripts') @endpush @endif @endsection