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

@param \Cortex\Bookings\Models\Service              $service
@param \Cortex\Foundation\DataTables\MediaDataTable $mediaDataTable

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