@extends('layouts.app') @section('title', $expense?->exists ? 'Edit expense' : 'Record expense') @section('content')

{{ $expense?->exists ? 'Edit expense' : 'Record expense' }}

Costs are only counted on the P&L once they have been approved and posted.

Back
@csrf @if ($expense?->exists) @method('PUT') @endif

Expense

@error('description'){{ $message }}@enderror
@error('amount'){{ $message }}@enderror
@error('expense_date'){{ $message }}@enderror
@foreach (['bandwidth', 'fuel', 'rent', 'salaries', 'maintenance', 'marketing', 'hardware', 'transport', 'bank_charges', 'sundry'] as $c) @endforeach @error('category'){{ $message }}@enderror

Accounting

Expense accounts only. Approval debits this account. @error('account_id'){{ $message }}@enderror
Approval credits cash, the mobile money float, or accounts payable for on credit.
@if (! $expense?->exists) @endif
Cancel
@endsection