@extends('layouts.main') @section('title', 'Balance') @section('css') @endsection @section('nav') @include('layouts.nav') @endsection @section('content')
Hotel Collects
Pay At Hotel ${{ number_format(abs($bookings->where('payment_status', 'Hotel Collects')->sum('payable')), 2) }}
Payments made to Yohobed $-{{ number_format($TotalReceivedPayments, 2) }}
${{ number_format(abs(($bookings->where('payment_status', 'Hotel Collects')->sum('payable') + $TotalReceivedPayments)), 2) }}
Yoho Collects
Paid Online ${{ number_format($totalBaseAmountPaidOnline, 2) }}
Payments made to Property $-{{ number_format($TotalsentPayments, 2) }}
${{ number_format(abs($totalBaseAmountPaidOnline - $TotalsentPayments), 2) }}

Balance @if((($totalBaseAmountPaidOnline - $TotalsentPayments) + ((($bookings->where('payment_status', 'Hotel Collects')->sum('payable')) + $TotalReceivedPayments))) < 0) (Pay to Yoho) @else() (Pay to Property) @endif

{{-- ${{ abs(number_format((($totalBaseAmountPaidOnline - $TotalsentPayments) + ((($bookings->where('payment_status', 'Hotel Collects')->sum('payable')) + $TotalReceivedPayments))), 2)) }}--}} ${{ number_format(abs((($totalBaseAmountPaidOnline - $TotalsentPayments) + ($bookings->where('payment_status', 'Hotel Collects')->sum('payable') + $TotalReceivedPayments))), 2) }}

{{--

Yoho Commission: {{ $totalYohoCommission }} LKR

--}} {{--

OTA Commission: {{ $totalOTACommission }} LKR

--}}
{{--
--}} {{--
--}} {{--
Hotel Collects ${{ number_format(($bookings->where('payment_status', 'Hotel Collects')->sum('payable')), 2) }}--}} {{--
--}} {{--
Property paid to Yoho Bed ${{ number_format($TotalReceivedPayments, 2) }}--}} {{--
--}} {{--
Balance ${{ number_format(($bookings->where('payment_status', 'Hotel Collects')->sum('payable') + $TotalReceivedPayments), 2) }}--}} {{--
--}} {{--
--}} {{--
--}} {{--
Yoho Collects ${{ number_format($totalBaseAmountPaidOnline, 2) }}--}} {{--
--}} {{--
Yoho Bed paid to property $-{{ number_format($TotalsentPayments, 2) }}
--}} {{--
Balance ${{ number_format(($totalBaseAmountPaidOnline - $TotalsentPayments), 2) }}--}} {{--
--}} {{--
--}} {{--
--}}

All the prices are in US Dollars

Reservations starting from July-2018 onwards.

Yoho Bed has to pay to the Property

Property owner has to pay to Yoho Bed

How To Pay ?

All the prices are in US Dollars

Yoho Bed has to pay to the Property Property owner has to pay to Yoho Bed

{{----}} {{----}} {{----}} @foreach($bookings as $key => $booking)
Booking IDBooked DateCheckin CheckoutExchange RateCustomer Channel Selling Price Base Price
(including taxes)
Genius/MOD DiscountDeals/SurplusYoho Commission OTA Commission Amount