src/Http/Controllers/Adminarea/EventMediaController.php
public function index(Event $event, MediaDataTable $mediaDataTable)
    {
        return $mediaDataTable->with([
            'resource' => $event,
            'tabs' => 'adminarea.events.tabs',
            'id' => "adminarea-events-{$event->getRouteKey()}-media-table",
            'url' => route('adminarea.events.media.store', ['event' => $event]),
        ])->render('cortex/foundation::adminarea.pages.datatable-dropzone');
    }
public function index(Event $event, MediaDataTable $mediaDataTable)
    {
        return $mediaDataTable->with([
            'resource' => $event,
            'tabs' => 'adminarea.events.tabs',
            'id' => "adminarea-events-{$event->getRouteKey()}-media-table",
            'url' => route('adminarea.events.media.store', ['event' => $event]),
        ])->render('cortex/foundation::adminarea.pages.datatable-dropzone');
    }
public function index ( Event $ event , MediaDataTable $ mediaDataTable ) { return $ mediaDataTable -> with ( [ 'resource' => $ event , 'tabs' => 'adminarea.events.tabs' , 'id' => "adminarea-events-{$event->getRouteKey()}-media-table" , 'url' => route ( 'adminarea.events.media.store' , [ 'event' => $ event ] ) , ] ) -> render ( 'cortex/foundation::adminarea.pages.datatable-dropzone' ) ; }
List event media.

@param \Cortex\Bookings\Models\Event                $event
@param \Cortex\Foundation\DataTables\MediaDataTable $mediaDataTable

@return \Illuminate\Http\JsonResponse|\Illuminate\Http\RedirectResponse
List event media .