@extends('layouts.admin') @section('title', 'Expenses') @section('page-title', 'Expenses') @section('content')
@if(!$panelOpen)
to
and
Clear
@if($expenses->isNotEmpty())
@foreach($expenses as $note) @endforeach
Date Doc. No. Vendor Name Category Amount Action
{{ $note->expense_date->format('d - M - Y') }} {{ $note->expense_number }} {{ $note->partyName() }} {{ $note->displayCategory() }} ₹ {{ number_format($note->grand_total, 2) }}
@csrf @method('DELETE')
@php $pageTotal = $expenses->sum(fn ($n) => (float) $n->grand_total); @endphp @else

There are no expenses created yet

Record vendor expenses with categories, GST, payment method, and printable documents.

New Expense @include('admin.expenses.partials.lifecycle')
In the Expenses tab, you can:
@foreach(config('expense.empty_state.capabilities', $features) as $feature)
{{ $feature }}
@endforeach
@endif
@if($expenses->isNotEmpty())
@include('admin.expenses.partials.lifecycle')
@endif @else
@include('admin.expenses.partials.sidebar-toolbar')
@forelse($expenses as $note) @php $qStatus = $note->statusMeta(); @endphp
{{ $note->expense_number }}
{{ $note->partyName() }} · {{ $note->expense_date->format('d M Y') }}
₹{{ number_format($note->grand_total, 2) }}
{{ $qStatus['label'] }}
@empty
No expenses match filters.
@endforelse
@if($selected && isset($expense))
@include('admin.expenses.partials.preview', [ 'embedded' => true, 'closeUrl' => route('admin.expenses.index', request()->except('expense')), ])
@endif
@endif
@endsection @push('styles') @if($panelOpen ?? false) @endif @endpush @push('scripts') @if($panelOpen ?? false) @include('admin.expenses.partials.preview-scripts') @endif @endpush