@extends('layouts.app') @section('page-name','Tabungan') @section('content')

Transaksi

@if(session()->has('msg'))
@if(session()->get('type') == 'success') @else @endif {{ session()->get('msg') }}
@endif
{{--
--}} @if($errors->any())
@foreach($errors->all() as $error) {{ $error }}
@endforeach
@endif
@csrf
{{--
--}}

Mutasi tabungan

@foreach ($tabungan as $index => $item) @endforeach
No. Tanggal Nama KD Keterangan Jumlah Cetak
{{ $index+1 }} {{ $item->created_at->format('d-m-Y') }} {{ $item->siswa->nama }} - {{ $item->siswa->kelas->nama }} - {{ isset($item->siswa->kelas->periode) ? $item->siswa->kelas->periode->nama : '' }} @if($item->tipe == 'in') Menabung @elseif($item->tipe == 'out') Penarikan @endif {{ $item->keperluan }} IDR. {{ format_idr($item->jumlah) }} Cetak
@endsection @section('css') @endsection @section('js') @endsection