@extends('layouts.app') @section('title') Expenses Head Details @endsection @section('header-script') @endsection @section('content')


@include('layouts.include.alert')

Expenses Purpose ({{ $head->title }})

Date: {{ Carbon\Carbon::parse($head->created_at)->format('d-M-Y') }}

@php $total =0 ; @endphp @foreach($head->expenses as $expense) @php $total = $total + $expense->amount; @endphp @endforeach
# Date Title Amount Note Edit Delete
{{ $loop->index +1 }} {{ Carbon\Carbon::parse($expense->date)->format('d-M-Y ') }} {{ $expense->title }} {{ $expense->amount }} {{ $expense->note }}
Total Amount: {{ $total }}


@endsection