Files

125 lines
14 KiB
PHP

<?php
use Illuminate\Support\Facades\Route;
Route::group(['middleware' => ['auth', 'disablebackbutton', 'user-locale','subscription-tracking']], function () {
/* DiscountCategory Controller */
Route::get('/discount_category/inactive', 'DiscountCategoryController@inactive')->name('discount_category.inactive');
Route::post('/discount_category/activate{id}', 'DiscountCategoryController@activate')->name('discount_category.activate');
Route::resource('discount_category', 'DiscountCategoryController');
/* Patient Discounts Controller */
Route::get('/discounts/inactive', 'DiscountController@inactive')->name('discounts.inactive');
Route::post('/discounts/activate/{id}', 'DiscountController@activate')->name('discounts.activate');
Route::any('/discounts/edit_insured_drugs/{patient_category_id}', 'DiscountController@edit_insured_drugs');
Route::any('/discounts/store_edited_insured_drugs/', 'DiscountController@store_edited_insured_drugs')->name('discounts.store_edited_insured_drugs');
Route::any('discounts/add_dependants', 'DiscountController@add_category_patient_dependants');
Route::any('discounts/add_dependants_to_category_patient', 'DiscountController@add_dependants_to_category_patient');
Route::any('store_dependants_to_category_patient', 'DiscountController@store_dependants_to_category_patient');
Route::any('view_patient_dependant_details', 'DiscountController@view_patient_dependant_details');
Route::any('view_dependants_to_category_patient/{id}', 'DiscountController@view_dependants_to_category_patient');
Route::any('generate_dependants_payment_invoice', 'DiscountController@generate_dependants_payment_invoice');
Route::any('receive_dependants_payment', 'DiscountController@receive_dependants_payment');
Route::get('search_dependant_name', 'DiscountController@search_dependant_name')->name('dependants.search_dependant_name');
Route::resource('discounts', 'DiscountController');
Route::any('clean_dependants_that_are_main_patients', 'DiscountController@clean_dependants_that_are_main_patients');
/* Price List */
Route::get('/price_list_category/inactive', 'PriceListController@inactive')->name('price_list_category.inactive');
Route::post('/price_list_category/activate{id}', 'PriceListController@activate')->name('price_list_category.activate');
Route::any('/price_list_category/edit_pricing/{id}', 'PriceListController@edit_pricing');
Route::any('/price_list_category/edit_pricing_sundries/{id}', 'PriceListController@edit_pricing_sundries')->name('price_list_category.edit_pricing_sundries');
Route::any('/price_list_category/save_edit_pricing_sundries', 'PriceListController@save_edit_pricing_sundries')->name('price_list_category.save_edit_pricing_sundries');
Route::any('/price_list_category/edit_pricing_procedures/{id}', 'PriceListController@edit_pricing_procedures')->name('price_list_category.edit_pricing_procedures');
Route::any('/price_list_category/save_edit_pricing_procedures', 'PriceListController@save_edit_pricing_procedures')->name('price_list_category.save_edit_pricing_procedures');
Route::any('/price_list_category/edit_pricing_investigations/{id}', 'PriceListController@edit_pricing_investigations')->name('price_list_category.edit_pricing_invesigations');
Route::any('/price_list_category/save_edit_pricing_investigations', 'PriceListController@save_edit_pricing_investigations')->name('price_list_category.save_edit_pricing_investigations');
Route::any('/price_list_category/edit_pricing_drugs/{id}', 'PriceListController@edit_pricing_drugs')->name('price_list_category.edit_pricing_drugs');
Route::any('/price_list_category/save_edit_pricing_drugs', 'PriceListController@save_edit_pricing_drugs')->name('price_list_category.save_edit_pricing_drugs');
Route::any('/price_list_category/edit_pricing_services/{id}', 'PriceListController@edit_pricing_services')->name('price_list_category.edit_pricing_services');
Route::any('/price_list_category/save_edit_pricing_services', 'PriceListController@save_edit_pricing_services')->name('price_list_category.save_edit_pricing_services');
Route::any('/price_list_category/edit_pricing_eye_glasses/{id}', 'PriceListController@edit_pricing_eye_glasses')->name('price_list_category.edit_pricing_eye_glasses');
Route::any('/price_list_category/save_pricing_eye_glasses', 'PriceListController@save_pricing_eye_glasses')->name('price_list_category.save_pricing_eye_glasses');
Route::any('/price_list_category/apply_markup_to_drugs/{id}', 'PriceListController@apply_markup_to_drugs')->name('price_list_category.apply_markup_to_drugs');
Route::any('/price_list_category/save_apply_markup_to_drugs', 'PriceListController@save_apply_markup_to_drugs')->name('price_list_category.save_apply_markup_to_drugs');
Route::any('/price_list_category/apply_markup_to_eye_glasses/{id}', 'PriceListController@apply_markup_to_eye_glasses')->name('price_list_category.apply_markup_to_eye_glasses');
Route::any('/price_list_category/save_apply_markup_to_eye_glasses', 'PriceListController@save_apply_markup_to_eye_glasses')->name('price_list_category.save_apply_markup_to_eye_glasses');
Route::any('/price_list_category/apply_markup_to_investigations/{id}', 'PriceListController@apply_markup_to_investigations')->name('price_list_category.apply_markup_to_investigations');
Route::any('/price_list_category/save_apply_markup_to_investigations', 'PriceListController@save_apply_markup_to_investigations')->name('price_list_category.save_apply_markup_to_investigations');
Route::any('/price_list_category/apply_markup_to_procedures/{id}', 'PriceListController@apply_markup_to_procedures')->name('price_list_category.apply_markup_to_procedures');
Route::any('/price_list_category/save_apply_markup_to_procedures', 'PriceListController@save_apply_markup_to_procedures')->name('price_list_category.save_apply_markup_to_procedures');
Route::any('/price_list_category/apply_markup_to_services/{id}', 'PriceListController@apply_markup_to_services')->name('price_list_category.apply_markup_to_services');
Route::any('/price_list_category/save_apply_markup_to_services', 'PriceListController@save_apply_markup_to_services')->name('price_list_category.save_apply_markup_to_services');
Route::any('/price_list_category/apply_markup_to_sundries/{id}', 'PriceListController@apply_markup_to_sundries')->name('price_list_category.apply_markup_to_sundries');
Route::any('/price_list_category/save_apply_markup_to_sundries', 'PriceListController@save_apply_markup_to_sundries')->name('price_list_category.save_apply_markup_to_sundries');
Route::resource('price_list_category', 'PriceListController');
// patient accounts
Route::any('/patient_accounts/statement', 'PatientAccountsController@statement')->name('patient_accounts.statement');
Route::any('/patient_accounts/print_statement', 'PatientAccountsController@print_statement')->name('patient_accounts.print_statement');
Route::any('/patient_accounts/make_deposit', 'PatientAccountsController@make_deposit')->name('patient_accounts.make_deposit');
Route::any('/patient_accounts/store_deposit', 'PatientAccountsController@store_deposit')->name('patient_accounts.store_deposit');
Route::any('/patient_accounts/print_receipt_pdf_details', 'PatientAccountsController@print_receipt_pdf_details')->name('patient_accounts.print_receipt_pdf_details');
Route::any('/patient_accounts/refund_deposit', 'PatientAccountsController@refund_deposit')->name('patient_accounts.refund_deposit');
Route::any('/patient_accounts/save_refund_deposit', 'PatientAccountsController@save_refund_deposit')->name('patient_accounts.save_refund_deposit');
Route::any('/patient_accounts/deposits_report', 'PatientAccountsController@deposits_report')->name('patient_accounts.deposits_report');
Route::any('/patient_accounts/consumptions_report', 'PatientAccountsController@consumptions_report')->name('patient_accounts.consumptions_report');
Route::any('/patient_accounts/view_details/{patient_id}', 'PatientAccountsController@view_details');
Route::any('/patient_accounts/cancel_deposit/{id}', 'PatientAccountsController@cancel_deposit');
Route::any('/patient_accounts/refunds_report', 'PatientAccountsController@refunds_report')->name('patient_accounts.refunds_report');
Route::any('/patient_accounts/cancel_refund/{id}', 'PatientAccountsController@cancel_refund');
/* Family accounts routes */
Route::resource('family_accounts', 'FamilyAccountsController');
Route::any('family_accounts/refund/{family_account_id}', 'FamilyAccountsController@refund');
Route::any('family_accounts/store_family_refund', 'FamilyAccountsController@store_family_refund')->name('family_accounts.store_family_refund');
Route::any('family_accounts/add_deposit', 'FamilyAccountsController@add_family_deposit')->name('family_accounts.add_deposit');
Route::any('family_accounts/store_family_deposit', 'FamilyAccountsController@store_family_deposit')->name('family_accounts.store_family_deposit');
Route::any('family_accounts_consumption_report', 'FamilyAccountsController@family_accounts_consumption_report')->name('family_accounts.consumption_report');
Route::any('family_accounts_deposits_report', 'FamilyAccountsController@deposits_report')->name('family_accounts.deposit_report');
Route::any('inactive_family_accounts', 'FamilyAccountsController@inactive')->name('family_accounts.inactive_family_accounts');
Route::post('/family_accounts/activate{id}', 'FamilyAccountsController@activate')->name('family_accounts.activate');
Route::any('family_accounts_search', 'FamilyAccountsController@family_accounts_search');
Route::any('/family_accounts/custom_family_accounts/{category}', 'FamilyAccountsController@custom_family_accounts')->name('family_accounts.custom_family_accounts');
Route::any('/family_accounts/custom_family_account/{patient_id}/{category}', 'FamilyAccountsController@custom_family_account')->name('family_accounts.custom_family_account');
Route::any('print_family_account_receipt_pdf_details', 'FamilyAccountsController@print_family_account_receipt_pdf_details');
Route::any('print_family_account_refund_receipt_pdf_details', 'FamilyAccountsController@print_family_account_refund_receipt_pdf_details');
Route::any('family_accounts/{family_account}/statement/', 'FamilyAccountsController@family_accounts_statements')->name('family_accounts.family_accounts_statements');
Route::any('family_statement_print', 'FamilyAccountsController@family_statement_print');
Route::any('family_deposit_cancellation_reason', 'FamilyAccountsController@cancel_deposit_reason');
Route::any('family_account_deposit_cancellation', 'FamilyAccountsController@cancel_deposit');
Route::get('search_family_account_name', 'FamilyAccountsController@search_family_account_name')->name('family_accounts.search_family_account_name');
Route::any('get_family_acc_balance/{id}', 'FamilyAccountsController@get_family_account_balance');
// Patient Debtors
Route::any('patient_debtors/receive_debtor_payment/{id}', 'PatientDebtorsController@receive_debtor_payment')->name('patient_debtors.receive_debtor_payment');
Route::post('patient_debtors/process_debtor_payment', 'PatientDebtorsController@process_debtor_payment')->name('patient_debtors.process_debtor_payment');
Route::any('patient_debtors/history_debtor_payments/{debtor_id}', 'PatientDebtorsController@history_debtor_payments')->name('patient_debtors.history_debtor_payments');
Route::any('patient_debtors/reverse_debtor_payment/{payment_id}', 'PatientDebtorsController@reverse_debtor_payment');
Route::any('patient_debtors/print_debtor_receipt_pdf_details', 'PatientDebtorsController@print_debtor_receipt_pdf_details')->name('patient_debtors.print_debtor_receipt_pdf_details');
Route::any('patient_debtors/reprint_debtor_receipt_pdf_details', 'PatientDebtorsController@reprint_debtor_receipt_pdf_details')->name('patient_debtors.reprint_debtor_receipt_pdf_details');
Route::any('patient_debtors/debtor_payment_receipt', 'PatientDebtorsController@debtorPaymentReceipt')->name('patient_debtors.debtor_payment_receipt');
Route::any('patient_debtors/write_off_debts', 'PatientDebtorsController@write_off_debts')->name('patient_debtors.write_off_debts');
Route::any('patient_debtors/debtors', 'PatientDebtorsController@debtors')->name('patient_debtors.debtors');
Route::any('patient_debtors/debtors_patient_search/{patient_id}', 'PatientDebtorsController@debtors_patient_search');
// Debt Plan
Route::any('patient_debtors/debt_plan_payment_receipt', 'PatientDebtorsController@debtPlanPaymentReceipt')->name('patient_debtors.debt_plan_payment_receipt');
Route::any('patient_debtors/write_off_debt_plan', 'PatientDebtorsController@write_off_debt_plan')->name('patient_debtors.write_off_debt_plan');
Route::any('patient_debtors/debt_plan_payment/{id}', 'PatientDebtorsController@debt_plan_payment')->name('patient_debtors.debt_plan_payment');
Route::any('patient_debtors/debt_plan_receipt', 'PatientDebtorsController@debt_plan_receipt')->name('patient_debtors.debt_plan_receipt');
Route::any('patient_debtors/staff_guarantors', 'PatientDebtorsController@staff_guarantors')->name('patient_debtors.staff_guarantors');
Route::any('patient_debtors/debt_plan_patient_search/{patient_id}', 'PatientDebtorsController@debt_plan_patient_search');
Route::any('patient_debtors/debt_plan_guarantor_agreement/{id}', 'PatientDebtorsController@debt_plan_guarantor_agreement')->name('patient_debtors.debt_plan_guarantor_agreement');
Route::any('patient_debtors/receive_debt_plan_payment_staff', 'PatientDebtorsController@receive_debt_plan_payment_staff')->name('patient_debtors.receive_debt_plan_payments_staff');
Route::any('patient_debtors/process_debt_plan_payment_staff', 'PatientDebtorsController@process_debt_plan_payment_staff')->name('patient_debtors.process_debt_plan_payment_staff');
Route::any('family_deposit_reprint/{id}', 'FamilyAccountsController@family_deposit_reprint')->name('family_accounts.family_deposit_reprint');
});