@extends('layouts.admin') {{ config('app.name', 'Laravel') }} | Admin | Subjects @section('main-content')
@if (Session::has('success')) @endif @if ($errors->any())
    @foreach ($errors->all() as $error)
  • {{ $error }}
  • @endforeach
@endif

Records / Transaction

Transaction List
@include('components.datefilter')
@if (count($transactions) != 0) @php $count = 0; @endphp @foreach ($transactions as $key => $transaction) @if (!$transaction->student) @continue; @endif @php $count++; @endphp @endforeach @else @endif
S.No Student Name Parent Name Transaction Amount Transaction Date Transaction Type
{{ $count + 1 }} {{ ucwords($transaction->student->first_name) }} {{ ucwords($transaction->student->last_name) }} @if (isset($transaction->student->parent)) {{ ucwords($transaction->student->parent->first_name) }} {{ ucwords($transaction->student->parent->last_name) }} @endif {{ ucwords($transaction->amountpaid) }} {{ ucwords($transaction->created_at->format('d-m-y')) }} {{ ucwords($transaction->Transaction_type) }}
{{ 'No record found' }}
@endsection