Server IP : 66.29.132.124 / Your IP : 3.149.29.209 Web Server : LiteSpeed System : Linux business141.web-hosting.com 4.18.0-553.lve.el8.x86_64 #1 SMP Mon May 27 15:27:34 UTC 2024 x86_64 User : wavevlvu ( 1524) PHP Version : 7.4.33 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /home/wavevlvu/book24.ng/modules/User/Controllers/ |
Upload File : |
<?php namespace Modules\User\Controllers; use Illuminate\Auth\Events\Registered; use Illuminate\Support\Facades\Log; use Illuminate\Validation\Rule; use Matrix\Exception; use Modules\FrontendController; use Modules\User\Events\NewVendorRegistered; use Modules\User\Events\SendMailUserRegistered; use Modules\User\Models\Newsletter; use Modules\User\Models\Subscriber; use Modules\User\Models\User; use Illuminate\Http\Request; use Illuminate\Support\Facades\Auth; use Illuminate\Support\Facades\Hash; use Illuminate\Support\MessageBag; use Modules\Vendor\Models\VendorRequest; use SimpleSoftwareIO\QrCode\Facades\QrCode; use Validator; use Modules\Booking\Models\Booking; use App\Helpers\ReCaptchaEngine; use Illuminate\Foundation\Auth\AuthenticatesUsers; use Modules\Booking\Models\Enquiry; class BookingController extends FrontendController { public function __construct() { parent::__construct(); } public function bookingInvoice($code) { $booking = Booking::where('code', $code)->first(); $user_id = Auth::id(); if (empty($booking)) { return redirect('user/booking-history'); } if ($booking->customer_id != $user_id and $booking->vendor_id != $user_id) { return redirect('user/booking-history'); } $data = [ 'booking' => $booking, 'service' => $booking->service, 'page_title' => __("Invoice") ]; return view('User::frontend.bookingInvoice', $data); } public function ticket($code = '') { $booking = Booking::where('code', $code)->first(); $user_id = Auth::id(); if (empty($booking)) { return redirect('user/booking-history'); } if ($booking->customer_id != $user_id and $booking->vendor_id != $user_id) { return redirect('user/booking-history'); } $data = [ 'booking' => $booking, 'service' => $booking->service, 'page_title' => __("Ticket") ]; return view('User::frontend.booking.ticket', $data); } }