{{-- resources/views/generalvouchers/edit.blade.php --}} @extends('admin.admin_dashboard') @section('admin') {{-- Select2 & jQuery --}}
@if($errors->any())
    @foreach($errors->all() as $e)
  • {{ $e }}
  • @endforeach
@endif
@csrf @method('PUT') {{-- Date / Reference / Bank --}}

{{-- Expense Lines --}}
Expense Lines
@php // how many existing expense‐lines we start with $initial = $voucher->lines->where('debit','>',0)->count(); @endphp @foreach($voucher->lines->where('debit','>',0)->values() as $i => $line) @endforeach
Account Amount Description
debit) }}" required > memo) }}" >
{{-- Add Ledger Modal (same as your Create view) --}} @endsection