@extends('layouts.erp_theme_01') @section('content')

{{ $project->project_name }} Project Expenses

@switch($project->current_status ) @case('new' ) New Project @break @case( 'active' ) Active Project @break @case( 'paused' ) Paused Project @break @case('completed' ) Completed Project @break @case( 'cancelled' ) Cancelled Project @break @endswitch {{ $project->location_name }}
{{ $project->project_desc }}
@if (session('err_msg_right'))
{{ session('err_msg_right') }}
@endif @php $total=0; @endphp @if(isset($expense_categories) && count($expense_categories) > 0) @foreach($expense_categories as $expense_category) @php $subtotal=0; @endphp @foreach($expenses as $item) @if( strcasecmp($item->category, $expense_category) == 0 ) @php $subtotal += $item->amount; @endphp @endif @endforeach
{{ ucwords( $expense_category ) }}
{{ $subtotal }} ₹
@endforeach @else
No expense entry found!
@endif
{{ csrf_field() }}
@endsection @section('script') @endsection