@extends('accounting::layouts.app') @section('title') {{ trans_choice('accounting::lang.add', 1) }} {{ trans_choice('accounting::general.journal', 1) }} {{ trans_choice('accounting::lang.entry', 1) }} @endsection @section('content') @include('accounting::layouts.nav') @component('accounting::components.section_header') @slot('title') {{ trans_choice('accounting::general.accounting', 1) }} @endslot @slot('subtitle') {{ trans_choice('accounting::lang.add', 1) }} {{ trans_choice('accounting::general.journal', 1) }} {{ trans_choice('accounting::lang.entry', 1) }} @endslot @endcomponent @can('product.view') @component('accounting::components.box') @slot('body') {{ csrf_field() }} {{ trans_choice('accounting::lang.business_location', 1) }} {{ trans_choice('accounting::lang.select', 1) }} @foreach ($business_locations as $key) {{ $key->name }} @endforeach @error('location_id') {{ $message }} @enderror {{ trans_choice('accounting::lang.currency', 1) }} @error('currency_id') {{ $message }} @enderror {{ trans_choice('accounting::lang.date', 1) }} @error('date') {{ $message }} @enderror {{ trans_choice('accounting::lang.payment', 1) }} {{ trans_choice('accounting::lang.type', 1) }} @foreach ($payment_types as $payment_type) {{ $payment_type->name }} @endforeach @error('payment_type_id') {{ $message }} @enderror {{-- Dynamic table start --}} {{ trans('accounting::lang.debit') }} {{ trans('accounting::lang.credit') }} {{ trans('accounting::lang.amount') }} {{ trans('accounting::lang.description') }} {{ trans_choice('accounting::lang.action', 1) }} {{ trans_choice('accounting::general.chart_of_account', 1) }} @error('debit') {{ $message }} @enderror {{ trans_choice('accounting::general.chart_of_account', 1) }} @error('credit') {{ $message }} @enderror {{ trans_choice('accounting::lang.amount', 1) }} @error('amount') {{ $message }} @enderror {{ trans_choice('accounting::lang.note', 2) }} @error('notes') {{ $message }} @enderror {{ trans('sale.total') }} @{{ number_format(amount_total) }} {{-- Dynamic table end --}} @endslot @endcomponent @endcan @stop @section('javascript') @endsection