first commit
This commit is contained in:
		
							
								
								
									
										0
									
								
								modules/Offline/Events/.gitkeep
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										0
									
								
								modules/Offline/Events/.gitkeep
									
									
									
									
									
										Normal file
									
								
							
							
								
								
									
										0
									
								
								modules/Offline/Events/Handlers/.gitkeep
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										0
									
								
								modules/Offline/Events/Handlers/.gitkeep
									
									
									
									
									
										Normal file
									
								
							
							
								
								
									
										21
									
								
								modules/Offline/Events/Handlers/OfflineAdminMenu.php
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										21
									
								
								modules/Offline/Events/Handlers/OfflineAdminMenu.php
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,21 @@
 | 
			
		||||
<?php
 | 
			
		||||
 | 
			
		||||
namespace Modules\Offline\Events\Handlers;
 | 
			
		||||
 | 
			
		||||
use App\Events\AdminMenuCreated;
 | 
			
		||||
 | 
			
		||||
class OfflineAdminMenu
 | 
			
		||||
{
 | 
			
		||||
    /**
 | 
			
		||||
     * Handle the event.
 | 
			
		||||
     *
 | 
			
		||||
     * @param  AdminMenuCreated $event
 | 
			
		||||
     * @return void
 | 
			
		||||
     */
 | 
			
		||||
    public function handle(AdminMenuCreated $event)
 | 
			
		||||
    {
 | 
			
		||||
        // Add child to existing item
 | 
			
		||||
        $item = $event->menu->whereTitle(trans_choice('general.settings', 2));
 | 
			
		||||
        $item->url('modules/offline/settings', trans('offline::offline.offline'), 4, ['icon' => 'fa fa-angle-double-right']);
 | 
			
		||||
    }
 | 
			
		||||
}
 | 
			
		||||
							
								
								
									
										19
									
								
								modules/Offline/Events/Handlers/OfflinePaymentGateway.php
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										19
									
								
								modules/Offline/Events/Handlers/OfflinePaymentGateway.php
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,19 @@
 | 
			
		||||
<?php
 | 
			
		||||
 | 
			
		||||
namespace Modules\Offline\Events\Handlers;
 | 
			
		||||
 | 
			
		||||
use App\Events\PaymentGatewayListing;
 | 
			
		||||
 | 
			
		||||
class OfflinePaymentGateway
 | 
			
		||||
{
 | 
			
		||||
    /**
 | 
			
		||||
     * Handle the event.
 | 
			
		||||
     *
 | 
			
		||||
     * @param  PaymentGatewayListing $event
 | 
			
		||||
     * @return void
 | 
			
		||||
     */
 | 
			
		||||
    public function handle(PaymentGatewayListing $event)
 | 
			
		||||
    {
 | 
			
		||||
        return json_decode(setting('offline.payment.methods'), true);
 | 
			
		||||
    }
 | 
			
		||||
}
 | 
			
		||||
		Reference in New Issue
	
	Block a user