@extends('layouts.erp_theme_01') @section('content')
@if (session('err_msg_right'))
{{ session('err_msg_right') }}
@endif @if(isset($projects) && count($projects) > 0) @foreach($projects as $item) @php $total_expense = 0; @endphp @foreach($expenses as $expense) @if( $item->id ==$expense->project_id) @php $total_expense +=$expense->amount; @endphp @endif @endforeach

{{ $item->project_name }} @switch($item->current_status ) @case('new' ) New @break @case( 'active' ) Active @break @case( 'paused' ) Paused @break @endswitch


Started from {{ date('m-d-Y', strtotime($item->start_date)) }} at {{ $item->location_name }}

Budget
{{ $item->estimated_budget }} ₹
Balance
{{ $item->estimated_budget - $total_expense}} ₹

Description
{{ $item->project_desc }}
@endforeach @else
No project added yet!
@endif
{{ csrf_field() }}
@endsection @section('script') @endsection