public static function getTotalBookingAmount($booking) { $total = 0; $total += Booking::getTotalVoucherAmount($booking); $total += Booking::getTotalCancelledVoucherAmount($booking); $total += TransportPackage::getTotalTransportationAmount($booking); $total += ExcursionBooking::getTotalExcursionBookingAmount($booking); return $total; }
TO <?php echo $t = $voucher->check_out; ?> at USD <?php echo number_format(Voucher::getVoucherAmount($voucher), 2); ?> <?php // echo Voucher::getNights($f, $t)->days; ?> </p> </td> <td align="right"> <?php echo number_format(Booking::getTotalVoucherAmount($booking), 2); ?> </td> <?php } else { if ($voucher->cancellation_amount != 0) { ?> <td> <p> Canellation charges for <?php echo $voucher->hotel->name; ?> (FROM <?php echo $f = $voucher->check_in; ?>