@extends('layouts.app')
@section('content')
@include('layouts.top-header', [
'title' => __($businessLabelTitleCase . ' Monthly Revenue Report'),
'class' => 'col-lg-7'
])
| # |
{{__('Image')}} |
{{__($businessLabelTitleCase . ' Name')}} |
{{__('Owner Name')}} |
{{__('Earnings')}} |
{{__('Commission')}} |
{{__('Revenue Month')}} |
|
@php
$tot_income = 0;
$tot_commission = 0;
@endphp
@foreach ($businesses as $business)
@php
$income = 0;
$commission = 0;
@endphp
| {{$loop->iteration}} |
|
{{$business->name}} |
{{$business->ownerName}} |
@foreach ($booking as $book)
@if ($book->business_id == $business->business_id)
@php
$income = $income + $book->business_income;
$commission = $commission + $book->commission;
@endphp
@endif
@endforeach
@php
$tot_income = $tot_income + $income;
$tot_commission = $tot_commission + $commission;
@endphp
{{$setting->currency_symbol}}{{$income}} |
{{$setting->currency_symbol}}{{$commission}} |
{{\Carbon\Carbon::parse($business->created_at)->format('Y-m-d')}} |
|
@endforeach
@endsection