@extends('layouts.app') @section('content') @include('layouts.top-header', [ 'title' => __('Revenue Report'), 'class' => 'col-lg-7' ])
{{__('Revenue Report')}}
@csrf
@if($errors->any())

{{$errors->first()}}

@endif
@foreach ($bookings as $booking) @php $payment_tot = $payment_tot + $booking->payment; $commission = $commission + $booking->commission; $business_income = $business_income + $booking->business_income; @endphp @endforeach
{{__('Booking id')}} {{__('User Name')}} {{__('Date / Time')}} {{__('Type')}} {{__('Payment')}} {{__('Commission')}} {{__($businessLabelTitleCase.' Income')}} {{__('Employee Commission')}}
{{$loop->iteration}} @php $base_url = url('/'); @endphp {{$booking->user->name}} {{$booking->date}} {{$booking->start_time}} @if ($booking->payment_type == "LOCAL" || $booking->payment_type == "Local") {{__('Cash')}} @else Stripe @endif {{$setting->currency_symbol}}{{$booking->payment}} {{$setting->currency_symbol}}{{$booking->commission}} {{$setting->currency_symbol}}{{$booking->business_income}} {{$setting->currency_symbol}}{{$booking->commission_employee}} @php $base_url = url('/'); @endphp
{{__('Grand Total :')}} {{$setting->currency_symbol}}{{$payment_tot}} {{$setting->currency_symbol}}{{$commission}} {{$setting->currency_symbol}}{{$business_income}}
@include('owner.booking.show') @endsection