@extends('admin.layouts.form') @section('custom_page_style') @endsection @section('content')
Particular | @foreach($expense_date_list as $date){{ \Carbon\Carbon::parse($date)->format('d M') }} | @endforeach
---|---|
Total Cost | @foreach($expense_date_list as $date){!! $expenses->where('expense_date', $date)->sum('amount') !!} | @endforeach
Staff Cost | @foreach($expense_date_list as $date){!! $expenses->whereIn('expense_head_id', $staff_cost_id)->where('expense_date', $date)->sum('amount') !!} | @endforeach
Food Cost | @foreach($expense_date_list as $date){!! $expenses->whereIn('expense_head_id', $food_cost_id)->where('expense_date', $date)->sum('amount') !!} | @endforeach
{!! $head->head !!} | @foreach($expense_date_list as $date){!! $expenses->whereIn('expense_head_id', $head->id)->where('expense_date', $date)->sum('amount') !!} | @endforeach
Operation Cost | @foreach($expense_date_list as $date){!! $expenses->whereIn('expense_head_id', $operation_cost_id)->where('expense_date', $date)->sum('amount') !!} | @endforeach
- Office Cost | @foreach($expense_date_list as $date){!! $expenses->whereIn('expense_head_id', $office_cost_id)->where('expense_date', $date)->sum('amount') !!} | @endforeach
{!! $head->head !!} | @foreach($expense_date_list as $date){!! $expenses->whereIn('expense_head_id', $head->id)->where('expense_date', $date)->sum('amount') !!} | @endforeach
- Marketing Cost | @foreach($expense_date_list as $date){!! $expenses->whereIn('expense_head_id', $marketing_cost_id)->where('expense_date', $date)->sum('amount') !!} | @endforeach
{!! $head->head !!} | @foreach($expense_date_list as $date){!! $expenses->whereIn('expense_head_id', $head->id)->where('expense_date', $date)->sum('amount') !!} | @endforeach