probooking
    • ProBookingCenter
    • Data Dictionary
    • Database Diagram
    • Code Issues
    • Page
    • Plan
    • Online vs Source Code

    Page

    Page → Database Mapping — Travel/Tour Management System#

    เอกสารนี้แสดงว่า แต่ละหน้าในระบบ ดึงข้อมูลจาก table ไหนบ้าง
    DB Connections: center (หลัก), incentive (การเงิน)

    สารบัญ#

    1.
    Authentication & Home
    2.
    Dashboard
    3.
    User Management
    4.
    Agency Management
    5.
    Series/Tour Management
    6.
    Period Management
    7.
    Booking Management
    8.
    Payment & Finance
    9.
    Invoice & Receipt
    10.
    Incentive Quotations
    11.
    Ticket System
    12.
    Reports
    13.
    Settings
    14.
    Operations
    15.
    Sales
    16.
    API Endpoints

    1. Authentication & Home#

    หน้าURLControllerTables (DB)
    Login/auth/token/loginAuth\TokenLoginController@loginusers (center)
    Login by JWT/auth/jwtAuth\TokenLoginController@loginByJwtusers (center)
    Logout/logoutAuth\TokenLoginController@logoutusers (center)
    Login Form/loginAuth\LoginController@showLoginForm—
    Register/registerAuth\RegisterControllerusers (center)
    Forgot Password/password/resetAuth\ForgotPasswordControllerusers, password_resets (center)
    Reset Password/password/reset/{token}Auth\ResetPasswordControllerusers, password_resets (center)
    Two Factor Form/two-factor-formAdmin\HomeController@twoFactorLoginFormusers (center)

    2. Dashboard#

    หน้าURLControllerTables (DB)
    Home/Admin\HomeController@indexusers, user_role_permits (center)
    Dashboard/dashboardAdmin\HomeController@dashboardusers, user_role_permits, booking, periods, series (center)
    Sales Dashboard/sales/dashboardAdmin\HomeController@salesDashboardusers, booking, periods, series, payments (center)
    Admin Dashboard/admin/dashboardAdmin\HomeController@AdminDashboardusers, booking, periods, series, payments, agency (center)

    3. User Management#

    หน้าURLControllerTables (DB)
    รายการผู้ใช้/adminAdmin\AdminController@indexusers, roles, user_role_permits (center)
    สร้างผู้ใช้/admin/createAdmin\AdminController@createusers, roles, country, user_country_permits (center)
    แก้ไขผู้ใช้/admin/{id}Admin\AdminController@showusers, roles, user_role_permits, user_country_permits, country (center)
    เปลี่ยนรหัสผ่าน/admin/{id}/passwordAdmin\AdminController@passwordusers (center)
    บัญชีส่วนตัว/accountAdmin\AccountController@indexusers (center)
    แก้ไขโปรไฟล์/account (PUT)Admin\AccountController@updateProfileusers (center)
    เปลี่ยนรหัสผ่าน/account/passwordAdmin\AccountController@passwordusers (center)

    4. Agency Management#

    4.1 Agency (ตัวแทน)#

    หน้าURLControllerTables (DB)
    รายการเอเจนท์/customer/agencyCustomer\Agency\AgencyController@indexagency, agency_company (center)
    สร้างเอเจนท์/customer/agency/createCustomer\Agency\AgencyController@createagency, agency_company (center)
    แก้ไขเอเจนท์/customer/agency/{id}/editCustomer\Agency\AgencyController@editagency, agency_company (center)
    Admin - รายการเอเจนท์/agencyAdmin\Agency\AgencyController@indexagency, agency_company, agency_access_tokens (center)
    Admin - สร้างเอเจนท์/agency/createAdmin\Agency\AgencyController@createagency, agency_company (center)
    Admin - แก้ไขเอเจนท์/agency/{id}/editAdmin\Agency\AgencyController@editagency, agency_company, agency_access_tokens (center)

    4.2 Agency Company (บริษัทตัวแทน)#

    หน้าURLControllerTables (DB)
    รายการบริษัท/customer/companyCustomer\Company\CompanyController@indexagency_company, province, amphur, district (center)
    สร้างบริษัท/customer/company/createCustomer\Company\CompanyController@createagency_company, province, amphur, district (center)
    แก้ไขบริษัท/customer/company/{id}/editCustomer\Company\CompanyController@editagency_company, province, amphur, district (center)
    Admin - รายการบริษัท/companyAdmin\Agency\CompanyController@indexagency_company (center)
    Admin - สร้างบริษัท/company/createAdmin\Agency\CompanyController@createagency_company (center)
    Admin - แก้ไขบริษัท/company/{id}/editAdmin\Agency\CompanyController@editagency_company, agency_access_tokens (center)
    API Token/company/{id}/apiAdmin\Agency\CompanyController@editApiagency_company, agency_access_tokens (center)
    Generate Token/company/{id}/generateAdmin\Agency\CompanyController@generateagency_company, agency_access_tokens (center)

    4.3 Credit Shell#

    หน้าURLControllerTables (DB)
    รายการ Credit Shell/agency/credit-shellAdmin\Agency\CreditShellController@indexagency_company, agency_credit_shells, booking (center)
    Credit รายบริษัท/agency/credit-shell/{id}/creditAdmin\Agency\CreditShellController@creditagency_company, agency_credit_shells, booking, payments (center)
    หักเงิน/agency/credit-shell/{id}/deductsAdmin\Agency\CreditShellController@deductsagency_credit_shells, booking, booking_deduct (center)
    คืนเงิน/agency/credit-shell/{id}/refundsAdmin\Agency\CreditShellController@refundsagency_credit_shells, booking, booking_refund (center)
    ยกเลิก/agency/credit-shell/{id}/cancelAdmin\Agency\CreditShellController@bookingcanceledagency_credit_shells, booking (center)

    5. Series/Tour Management#

    5.1 Series (ซีรีส์ทัวร์)#

    หน้าURLControllerTables (DB)
    รายการซีรีส์/series-tourSeries\SeriesTourController@indexseries, country, airline, tour_location_city (center)
    สร้างซีรีส์/series-tour/createSeries\SeriesTourController@createseries, country, airline, tour_location_city, land_operations (center)
    แก้ไขซีรีส์/series-tour/{id}/editSeries\SeriesTourController@editseries, country, airline, tour_location_city, series_programes, land_operations (center)

    5.2 Operation Tour#

    หน้าURLControllerTables (DB)
    จัดการทัวร์/operation/tourOperation\Tour\ManageTourController@indexseries, periods, country, airline, tour_location_city, activity, land_operations, bus_lists (center)
    จัดการเพียเรียด/operation/tour/{id}/periodOperation\Tour\TourPeriodController@indexseries, periods, bus_lists, booking, cost_seats (center)
    จัดการรถบัส/operation/tour/{id}/busOperation\Tour\BusController@indexbus_lists, periods, booking (center)
    จองในทัวร์/operation/tour/{id}/bookingOperation\Tour\TourBookingController@indexbooking, booking_details, periods, bus_lists, agency, users, passport (center)

    6. Period Management#

    หน้าURLControllerTables (DB)
    รายการเพียเรียด/series/period/{id}Series\SeriesPerioController@indexseries, periods, bus_lists, booking, room_details, series_programes (center)
    Booking ในเพียเรียด/period/{id}/bookingPeriod\PeriodBookingController@indexbooking, booking_details, booking_list, periods, bus_lists, agency, agency_company, users, passport, room_details, payments (center)
    รายละเอียดเพียเรียด/period/{id}/detailPeriod\PeriodBookingController@detailperiods, series, bus_lists, booking, cost_seats (center)
    Tagbag Export/period/{id}/tagbagPeriod\PeriodBookingController@tagbagbooking, booking_list, room_details, periods, series, country (center)

    7. Booking Management#

    7.1 รายการ Booking#

    หน้าURLControllerTables (DB)
    Booking ทั้งหมด/all-bookingAdmin\AllBookingController@indexbooking, periods, series, agency, users, bus_lists (center)
    Admin Booking List/bookingAdmin\BookingController@indexbooking, periods, series, country, tour_location_city, agency, users, passport, bankbook (center)
    Booking Filter/booking/fillterAdmin\BookingController@fillterเหมือน Booking List + filter conditions

    7.2 สร้าง/แก้ไข Booking#

    หน้าURLControllerTables (DB)
    สร้าง Booking/booking/create/{busId}Booking\BookingController@createbooking, booking_details, bus_lists, periods, series, agency, agency_company, users, passport, room_details (center)
    แก้ไข Booking/booking/{id}/editBooking\BookingController@editbooking, booking_details, booking_additionals, booking_list, bus_lists, periods, series, agency, agency_company, users, passport, room_details, payments (center)
    รายละเอียด Booking/booking/{id}Booking\BookingController@showbooking, booking_details, booking_additionals, booking_history, booking_log, booking_activity, booking_guarantee, bus_lists, periods, series, agency, agency_company, users, passport, room_details, payments, receipts (center)

    7.3 Booking ของฉัน#

    หน้าURLControllerTables (DB)
    My Booking/my-bookingAdmin\Mybooking\MybookingController@indexbooking, periods, series, bus_lists, users (center)

    7.4 Visa#

    หน้าURLControllerTables (DB)
    ข้อมูลวีซ่าAPI /visa/{bookId}Api\VisaControllerbooking, booking_visa_eus, booking_visa_rejects, booking_visa_reject_countries, booking_visa_old_passes, booking_visa_old_names, booking_visa_travelings (center)

    8. Payment & Finance#

    8.1 Payment#

    หน้าURLControllerTables (DB)
    รายการชำระเงิน/paymentAdmin\PaymentController@indexpayments, booking, users, agency, bankbook, payment_methods, payment_transitions (center)
    แจ้งชำระเงิน/payment/notifyPayment\Notify\PaymentNotifyController@indexpayments, booking, bankbook, agency (center)
    Bookbank/payment/bookbankPayment\Bookbank\BookbankController@indexbankbook (center)

    8.2 Accumulated Credit#

    หน้าURLControllerTables (DB)
    สะสมเครดิต/payment/accumulatedPayment\Accumulated\AccumulatedCreditController@indexagency_company, agency_credit_shells, booking, payments (center)

    8.3 Refund#

    หน้าURLControllerTables (DB)
    คืนเงิน/payment/refundPayment\Refund\RefundController@indexbooking, booking_refund, payments, agency, agency_company (center)

    9. Invoice & Receipt#

    9.1 Invoice#

    หน้าURLControllerTables (DB)
    รายการ Invoice/invoicesAdmin\InvoicesController@indexinvoices, invoices_request, booking, agency_company, prefix_numbers (center)
    Invoice Request/invoices/requestAdmin\InvoicesController@requestListinvoices_request, booking, agency_company (center)

    9.2 Invoice Reports (Incentive DB)#

    หน้าURLControllerTables (DB)
    Invoice Report/report/invoiceAdmin\Invoice\InvoiceReportController@indexinvoice_reports, invoice_report_details (incentive), booking, periods, users (center)
    Tax Invoice/report/invoice-taxAdmin\Invoice\InvoiceTaxReportController@indexinvoice_tax_reports, invoice_tax_report_details (incentive), booking (center)
    Full Payment Invoice/report/invoice-fullAdmin\Invoice\InvoiceFullPaymentController@indexinvoice_full_payments, invoice_full_payment_details (incentive), booking (center)

    9.3 Receipt#

    หน้าURLControllerTables (DB)
    ใบเสร็จ/receiptAdmin\ReceiptController@indexreceipts, receipt_temporaries, receipt_temporary_details, booking, payments, agency_company (center)

    10. Incentive Quotations#

    หน้าURLControllerTables (DB)
    รายการใบเสนอราคา/incentiveAdmin\Incentives\IncentiveController@indexincentive_quotations, users (incentive)
    สร้างใบเสนอราคา/incentive/createAdmin\Incentives\IncentiveController@createincentive_quotations, agency, agency_company, users (incentive + center)
    แก้ไขใบเสนอราคา/incentive/{id}/editAdmin\Incentives\IncentiveController@editincentive_quotations, incentive_quotation_details, incentive_quotation_payments, incentive_quotation_payment_dues, incentive_quotation_flights, incentive_quotation_programs, incentive_quotation_prices, incentive_quotation_room_lists, incentive_quotation_passports (incentive), agency, agency_company (center)
    ชำระเงิน/incentive/{id}/paymentAdmin\Incentives\IncentivePaymentController@indexincentive_quotations, incentive_quotation_payments, incentive_payment_cancels, bankbook (incentive + center)
    พาสปอร์ต/incentive/{id}/passportAdmin\Incentives\IncentivePassportController@indexincentive_quotations, incentive_quotation_passports (incentive)

    11. Ticket System#

    11.1 Series ตั๋ว#

    หน้าURLControllerTables (DB)
    รายการซีรีส์ตั๋ว/ticket/seriesTicket\Series\SeriesTicketController@indexticket, ticket_period, ticket_flight, ticket_airport, airline (center)
    สร้างซีรีส์ตั๋ว/ticket/series/createTicket\Series\SeriesTicketController@createticket, ticket_flight, airline, ticket_airport, ticket_type (center)
    แก้ไขซีรีส์ตั๋ว/ticket/series/{id}/editTicket\Series\SeriesTicketController@editticket, ticket_flight, ticket_period, ticket_goods, airline, ticket_airport (center)

    11.2 จัดการตั๋ว#

    หน้าURLControllerTables (DB)
    จัดการตั๋ว/ticket/manageTicket\ManageTicket\ManageTicketController@indexticket, ticket_period, ticket_booking, ticket_flight, airline (center)
    Pre-Sale ตั๋ว/ticket/presaleTicket\PreSale\PreSaleTicketController@indexticket, ticket_quotations, ticket_quotations_goods, ticket_quotations_payment, ticket_quotations_duepayment, ticket_quotations_namelist (center)

    11.3 Booking ตั๋ว#

    หน้าURLControllerTables (DB)
    จองตั๋ว/ticket/booking/{id}Ticket\ManageTicket\ManageTicketController@bookingticket_booking, ticket_payment, ticket_payment_real, ticket_payment_other, ticket_payment_namelist, ticket_garanty, ticket_garanty_data, ticket_data, ticket, ticket_period, bankbook (center)
    ใบเสนอราคาตั๋ว/ticket/quotation/{id}(Ticket Quotation Controller)ticket_quotations, ticket_quotations_goods, ticket_quotations_payment, ticket_quotations_duepayment, ticket_quotations_namelist, ticket_quotations_document, ticket_quotation_lockseat (center)

    11.4 การเงินตั๋ว#

    หน้าURLControllerTables (DB)
    ยกเลิกตั๋ว/ticket/{id}/cancel(Ticket Cancel Controller)ticket_booking, ticket_cancel_book, ticket_deduct_book (center)
    คืนเงินตั๋ว/ticket/{id}/refund(Ticket Refund Controller)ticket_booking, ticket_refund, ticket_taxrefund (center)
    เรียกคืน (Getback)/ticket/{id}/getback(Ticket Getback Controller)ticket_booking, ticket_getback, ticket_getback_due, ticket_getback_period (center)
    สรุปตั๋ว/ticket/{id}/summary(Ticket Summary Controller)ticket_booking, ticket_summary, ticket_invoice_history (center)
    แจ้งเตือนชำระ/ticket/payment-alert(Payment Alert Controller)ticket_payment_alert, ticket_payment_alert_log (center)

    12. Reports#

    12.1 Booking Reports#

    หน้าURLControllerTables (DB)
    รายงานจองรายเดือน/report/booking-monthlyReports\*reports_booking_monthly, booking, periods, series (center)
    รายงานจองรายปี/report/booking-yearlyReports\*reports_booking_yearly_activity, booking (center)
    รายงานใบเสร็จ/report/receiptReports\ReportReceiptController@indexreceipts, receipt_temporaries, booking, agency_company, approve, approve_detail (center)

    12.2 Period Reports#

    หน้าURLControllerTables (DB)
    รายงานเพียเรียดรายเดือน/report/period-monthlyReports\*reports_periods_monthly, periods, series (center)
    รายงานเพียเรียดรายปี/report/period-yearlyReports\*reports_periods_yearly_activity, periods, series (center)

    12.3 Sales Reports#

    หน้าURLControllerTables (DB)
    รายงานเซลล์รายวัน/report/sales-dailyReports\*sales_booking_daily, users, booking (center)
    รายงานส่งอีเมล/report/send-mailsReports\*send_mails_reports, booking_send_mails (center)

    12.4 Costing Reports#

    หน้าURLControllerTables (DB)
    ต้นทุนเพียเรียด/report/costing/{periodId}(Costing Controller)costing_reports, costing_report_logs, periods, series, booking, cost_seats (center)
    ต้นทุนซีรีส์/report/costing-series/{seriesId}(Costing Series Controller)costing_series_reports, costing_series_summaries, costing_series_summary_details, costing_series_types, costing_series_type_lists, costing_series_type_list_details, costing_series_prices, series (center)

    12.5 Cost Seats#

    หน้าURLControllerTables (DB)
    ต้นทุนที่นั่ง/cost-seat/{periodId}(CostSeat Controller)cost_seats, cost_seat_orders, cost_seat_order_details, cost_seat_averages, cost_seat_average_details, cost_seat_tip_details, cost_seat_logs, periods, series, bus_lists (center)

    13. Settings#

    หน้าURLControllerTables (DB)
    หน้าตั้งค่า/settingAdmin\SettingController@index—
    สายการบิน/setting/airlineSetting\AirlineController@indexairline (center)
    สร้างสายการบิน/setting/airline/createSetting\AirlineController@createairline (center)
    แก้ไขสายการบิน/setting/airline/{id}Setting\AirlineController@editairline (center)
    เส้นทาง/setting/routeSetting\RouteController@indextour_route_country_permit, country (center)
    สร้างเส้นทาง/setting/route/createSetting\RouteController@createtour_route_country_permit, country (center)
    ประเทศ/setting/countrySetting\CountryController@indexcountry (center)
    สร้างประเทศ/setting/country/createSetting\CountryController@createcountry (center)
    แก้ไขประเทศ/setting/country/{id}Setting\CountryController@editcountry (center)
    เมือง/setting/citySetting\CityController@indextour_location_city, country (center)
    สร้างเมือง/setting/city/createSetting\CityController@createtour_location_city, country (center)
    ธนาคาร/setting/bankSetting\BankController@indexbankbook (center)
    สร้างธนาคาร/setting/bank/createSetting\BankController@createbankbook (center)
    แก้ไขธนาคาร/setting/bank/{id}Setting\BankController@editbankbook (center)
    Land Operation/setting/land-operationSetting\LandOperationController@indexland_operations, country_land_operations, country (center)
    สร้าง Land Operation/setting/land-operation/createSetting\LandOperationController@createland_operations, country, country_land_operations (center)
    แก้ไข Land Operation/setting/land-operation/{id}Setting\LandOperationController@editland_operations, country_land_operations, country (center)
    ประเทศ (Location)/setting/location/countrySetting\LocationCountryController@indexlocation_countries (center)
    เมือง (Location)/setting/location/citySetting\LocationCountryController@citylocation_cities, location_countries (center)
    โปรโมชั่น/setting/promotionSetting\PromotionController@indexpromotion_bookings, promotion_booking_details (center)
    สร้างโปรโมชั่น/setting/promotion/createSetting\PromotionController@createpromotion_bookings (center)
    แก้ไขโปรโมชั่น/setting/promotion/{id}Setting\PromotionController@editpromotion_bookings, promotion_booking_details (center)
    Flashsale Banner/setting/flashsaleSetting\FlashsaleBannerController@indexflashsale_banners (center)
    Banner/setting/banner(Banner Controller)banners (center)
    รหัสรายงาน/setting/report-password(ReportPassword Controller)report_passwords (center)
    Prefix Number/setting/prefix(PrefixNumber Controller)prefix_numbers (center)

    14. Operations#

    14.1 Operation Booking#

    หน้าURLControllerTables (DB)
    Operation Booking/operation/bookingOperation\Booking\OperationBookingController@indexbooking, booking_details, periods, series, bus_lists, agency, agency_company, users, payments (center)
    Promotion Operation/operation/promotionOperation\Booking\OperationPromotionController@indexpromotion_bookings, promotion_booking_details, booking (center)

    14.2 Pre-Sale (ใบเสนอราคาทัวร์)#

    หน้าURLControllerTables (DB)
    Pre-Sale/presaleAdmin\PreSale\PreSaleController@indexincentive_quotations, users (incentive)

    15. Sales#

    หน้าURLControllerTables (DB)
    Sales/salesSales\SalesController@indexusers, booking, periods (center)
    Sales Team/sales/teamSales\Team\SalesTeamController@indexusers, booking, periods, agency (center)
    Event/eventEvent\Event\EventController@index—
    Event Email/event/emailEvent\Email\EventEmailController@indexagency_email_masters (center)

    16. API Endpoints#

    16.1 Booking API#

    EndpointControllerTables (DB)
    GET /api/booking/{id}Api\Booking\BookingController@getBookingByIdbooking, booking_details, booking_additionals, booking_list, booking_activity, booking_guarantee, bus_lists, periods, period_leader, series, agency, agency_company, users, passport, room_details, invoices_request (center)
    POST /api/booking/checkoutApi\Booking\CheckoutController@checkoutbooking, booking_details, bus_lists, periods, agency, payments, prefix_numbers (center)
    GET /api/booking/{id}/paymentApi\Booking\BookingController@getPaymentpayments, bankbook, payment_transitions (center)
    POST /api/booking/{id}/passportApi\Booking\BookingController@savePassportpassport, booking (center)

    16.2 Agency API#

    EndpointControllerTables (DB)
    GET /api/agency/searchApi\Agency\AgencyController@searchagency, agency_company (center)
    GET /api/agency/company/searchApi\Agency\AgencyController@searchCompanyagency_company (center)

    16.3 Location API#

    EndpointControllerTables (DB)
    GET /api/location/provinceApi\Location\LocationAddressController@provinceprovince (center)
    GET /api/location/amphur/{provinceId}Api\Location\LocationAddressController@amphuramphur (center)
    GET /api/location/district/{amphurId}Api\Location\LocationAddressController@districtdistrict (center)

    16.4 Reports API#

    EndpointControllerTables (DB)
    GET /api/report/seriesAdmin\Api\Reports\*series, periods, booking, country (center)
    GET /api/report/tourAdmin\Api\Tour\*series, periods, bus_lists, booking (center)

    16.5 Visa API#

    EndpointControllerTables (DB)
    POST /api/visa/{bookId}Api\VisaController@storebooking_visa_eus, booking_visa_rejects, booking_visa_reject_countries, booking_visa_old_passes, booking_visa_old_names, booking_visa_travelings (center)

    Quotation (ใบเสนอราคา)#

    หน้าURLControllerTables (DB)
    Invoice ใบเสนอราคา/quotation/invoiceQuotations\QuotationInvoiceController@indexinvoice_reports, invoice_report_details (incentive)
    ชำระเงินใบเสนอราคา/quotation/invoice/{id}/paymentQuotations\QuotationInvoicePaymentController@indexinvoice_reports, incentive_quotation_payments, bankbook (incentive + center)

    Approval System#

    หน้าURLControllerTables (DB)
    อนุมัติ(embedded in various pages)(Approve logic)approve, approve_detail, approve_request (center)

    Summary: Cross-DB Pages#

    หน้าที่ดึงข้อมูลจาก ทั้ง 2 database พร้อมกัน:
    หน้าcenter tablesincentive tables
    Invoice Reportbooking, periods, usersinvoice_reports, invoice_report_details
    Tax Invoicebookinginvoice_tax_reports, invoice_tax_report_details
    Full Payment Invoicebookinginvoice_full_payments, invoice_full_payment_details
    Incentive Quotation (สร้าง/แก้ไข)agency, agency_company, usersincentive_quotations + sub-tables
    Incentive Paymentbankbookincentive_quotations, incentive_quotation_payments
    Pre-Saleusersincentive_quotations
    Quotation Invoice—invoice_reports, invoice_report_details
    Quotation Paymentbankbookinvoice_reports, incentive_quotation_payments
    Modified at 2026-03-25 09:08:10
    Previous
    Code Issues
    Next
    Plan
    Built with