@extends('admin.layouts.form') @section('content')

create   Expense Report (Daily)

{!! Form::open(['url'=>url('module/expense/daily_report'),'class'=>'form']) !!}
calendar_month
{!! Form::text('from',request()->from,['class'=>'form-control datepicker', 'placeholder'=>'From date']) !!}
calendar_month
{!! Form::text('to',request()->to,['class'=>'form-control datepicker', 'placeholder'=>'To date']) !!}
list {!! Form::select('restaurant_id',$restaurants,request()->restaurant_id,['class'=>'form-control selectpicker']) !!}
{!! Form::submit('SEARCH',['class'=>'btn btn-md btn-success btn-block']) !!}
{!! Form::close() !!}
@foreach($expense_date_list as $date) @endforeach @foreach($expense_date_list as $date) @endforeach @foreach($expense_date_list as $date) @endforeach @foreach($expense_date_list as $date) @endforeach @php $food_cost_heads = $expense_heads->whereIn('id', $food_cost_id); @endphp @foreach($food_cost_heads as $head) @foreach($expense_date_list as $date) @endforeach @endforeach @foreach($expense_date_list as $date) @endforeach @foreach($expense_date_list as $date) @endforeach @php $office_cost_heads = $expense_heads->whereIn('id', $office_cost_id); @endphp @foreach($office_cost_heads as $head) @foreach($expense_date_list as $date) @endforeach @endforeach @foreach($expense_date_list as $date) @endforeach @php $marketing_cost_heads = $expense_heads->whereIn('id', $marketing_cost_id); @endphp @foreach($marketing_cost_heads as $head) @foreach($expense_date_list as $date) @endforeach @endforeach
Particular{{ \Carbon\Carbon::parse($date)->format('d M') }}
Total Cost {!! $expenses->where('expense_date', $date)->sum('amount') !!}
Staff Cost {!! $expenses->whereIn('expense_head_id', $staff_cost_id)->where('expense_date', $date)->sum('amount') !!}
Food Cost {!! $expenses->whereIn('expense_head_id', $food_cost_id)->where('expense_date', $date)->sum('amount') !!}
{!! $head->head !!} {!! $expenses->whereIn('expense_head_id', $head->id)->where('expense_date', $date)->sum('amount') !!}
Operation Cost {!! $expenses->whereIn('expense_head_id', $operation_cost_id)->where('expense_date', $date)->sum('amount') !!}
- Office Cost {!! $expenses->whereIn('expense_head_id', $office_cost_id)->where('expense_date', $date)->sum('amount') !!}
{!! $head->head !!} {!! $expenses->whereIn('expense_head_id', $head->id)->where('expense_date', $date)->sum('amount') !!}
- Marketing Cost {!! $expenses->whereIn('expense_head_id', $marketing_cost_id)->where('expense_date', $date)->sum('amount') !!}
{!! $head->head !!} {!! $expenses->whereIn('expense_head_id', $head->id)->where('expense_date', $date)->sum('amount') !!}
@endsection @section('custom_page_script') @endsection