Home
NexoPOS

RenderCrudFormFooterEvent

RenderCrudFormFooterEvent is dispatched from CRUD form pages. Modules can listen to it to append form-specific scripts, modal markup, or supporting Blade views.

Where It Runs

This event is implemented in resources/views/pages/dashboard/crud/form.blade.php. NexoPOS dispatches it in the dashboard footer section with the current CRUD form instance.

Available Properties

  • $event->output: an App\\Classes\\Output instance used to append rendered footer content.
  • $event->instance: the current CRUD form instance. Use it to target one CRUD form.

Listener Example

<?php

namespace Modules\MyModule\Listeners;

use App\Events\RenderCrudFormFooterEvent;
use Modules\MyModule\Crud\PrinterCrud;

class RenderCrudFormFooterEventListener
{
    public function handle( RenderCrudFormFooterEvent $event )
    {
        if ( $event->instance instanceof PrinterCrud ) {
            $event->output->addView( 'MyModule::printers.form-footer' );
        }
    }
}

Summary

  • Use this event for footer output that belongs to a CRUD form page.
  • Check $event->instance when the injected view should apply only to a specific CRUD form.