@extends('apex-layouts.main') @section('title','Expenses') @section('header-right') Total:  {{ $expenses->total() }} {!! \App\helpers\ViewCommonHelper::headerExportButton() !!} @endsection @section('content')
@foreach($statuses as $value)
{!! $value->count !!}

{!! $value->status !!}

{!! number_format($value->total) !!}

@endforeach
@foreach($report as $index =>$value)

{!! number_format($value) !!}

{!! $index !!}
@endforeach
@foreach($expenses as $expense) @endforeach
# Title Type Amount Status Created Action
{{$expense->id}} {{$expense->title}} {{$expense->expenseType}} Rs. {{$expense->amount}} @if($expense->status == "CANCELED") {{$expense->status}} @else {{$expense->status}} @endif @if($expense->changedByName)

{{$expense->changedByName}}

@endif

{!! \App\helpers\ViewCommonHelper::getDateFormat($expense->paidDate)!!}

@if($expense->createdByName)

{{$expense->createdByName}}

@endif

{{\App\helpers\ViewCommonHelper::getDateFormat($expense->created_at,1)}}

@if(!in_array($expense->status,[\App\models\Expense::PAID,\App\models\Expense::CANCELED])) id)}}" data-modal-id="expenses-change-modal-{{$expense->id}}"> @endif

{{\App\helpers\ViewCommonHelper::getDateFormat($expense->updated_at,1)}}

@if($expenses->total() > $expenses->perPage()) @endif
@endsection