@extends('dashboard.layouts.app') @section('title', __('transactions.Edit Transaction')) @section('page_heading', __('transactions.Edit Transaction')) @section('breadcrumb') @endsection @section('content')

{{ __('transactions.Edit Transaction') }}

@if ($errors->any())
    @foreach ($errors->all() as $error)
  • {{ $error }}
  • @endforeach
@endif
@csrf @method('PUT')
@error('transaction_date')
{{ $message }}
@enderror
@error('description')
{{ $message }}
@enderror

{{ __('transactions.Entries') }}

{{-- Existing entries --}} @foreach($transaction->entries as $index => $entry)
@error("entries.$index.account_id")
{{ $message }}
@enderror
@error("entries.$index.type")
{{ $message }}
@enderror
@error('entries.{{$index}}.currency_id')
{{ $message }}
@enderror
amount) }}" required> @error("entries.$index.amount")
{{ $message }}
@enderror
@endforeach {{-- Placeholder for new entries (added via JavaScript) --}}
@endsection @push('scripts') @endpush