@extends('admin.layouts.app') @php if(!empty($id)){ $mode = "Edit"; $action = route('at.edit',$id); } else{ $mode = "Add"; $action = route('at.add',$invoice_id); $id = ""; } $transaction_type = [ '1' => 'Debit', '2' => 'Credit' ]; $transaction_payment_type = [ '1' => 'Full', '2' => 'Initial', '3' => 'Installment', '4' => 'Other' ]; $transaction_payment_method = [ '1' => 'bank', '2' => 'check', '3' => 'online', '4' => 'cash' ]; $transaction_currency = [ '1' => 'USD', '2' => 'EUR' ] @endphp @section('content')