@extends('layouts.app') @section('title', 'Food Cost') @section('content')
| Date | Meal | Recipe | Headcount | Cost | Per learner | Status |
|---|---|---|---|---|---|---|
| {{ \Carbon\Carbon::parse($plan->date)->format('D, d M Y') }} | {{ ucfirst($plan->meal) }} | {{ $plan->recipe ?: '—' }} | {{ num($plan->headcount) }} | {{ money($plan->cost) }} | {{ money($plan->headcount > 0 ? $plan->cost / $plan->headcount : 0) }} | |
| Total | {{ money($plans->sum('cost')) }} | |||||