{{-- style="width: 100vw; overflow-x: scroll;" --}}
Create
{{-- Delete Selected --}}
Filter
@php
$this_month_income = App\Models\ExpenseCalculation::where('types', 'income')
->whereMonth('date', date('m'))
->whereYear('date', date('Y'))
->sum('amount');
// dd($this_month_income);
$this_month_expense = App\Models\ExpenseCalculation::where('types', 'expense')
->whereMonth('date', date('m'))
->whereYear('date', date('Y'))
->sum('amount');
@endphp
This Month Income: {{ $this_month_income }}
{{-- --}}This Month Expense: {{ $this_month_expense }}
@if ($search_cashes == !null)
@endif
{{-- Table goes here id="datatablesSimple" --}}
{{ $expenseCalculations->links() }}
multi-delete icon | --}}Sl# | Date | Name | Category Name | Category Types | Amount | Actions | |
---|---|---|---|---|---|---|---|---|
--}} | {{ $cash->date ? \Carbon\Carbon::parse($cash->date)->format('d-M-Y') : '' }} | {{ $cash->name }} | {{ $cash->types }} | @php $category = App\Models\Category::find($cash->category_id) == null ? '' : App\Models\Category::find($cash->category_id)->name; @endphp {{ $category }} | {{ $cash->amount }} | Edit {{-- --}} | ||
No Data Found
|