src/Http/Controllers/Adminarea/EventBookingsController.php
public function import(Contact $contact, ImportRecordsDataTable $importRecordsDataTable)
    {
        return $importRecordsDataTable->with([
            'resource' => $contact,
            'tabs' => 'adminarea.contacts.tabs',
            'url' => route('adminarea.contacts.stash'),
            'id' => "adminarea-contacts-{$contact->getRouteKey()}-import-table",
        ])->render('cortex/foundation::adminarea.pages.datatable-dropzone');
    }
public function import(Contact $contact, ImportRecordsDataTable $importRecordsDataTable)
    {
        return $importRecordsDataTable->with([
            'resource' => $contact,
            'tabs' => 'adminarea.contacts.tabs',
            'url' => route('adminarea.contacts.stash'),
            'id' => "adminarea-contacts-{$contact->getRouteKey()}-import-table",
        ])->render('cortex/foundation::adminarea.pages.datatable-dropzone');
    }
public function import ( Contact $ contact , ImportRecordsDataTable $ importRecordsDataTable ) { return $ importRecordsDataTable -> with ( [ 'resource' => $ contact , 'tabs' => 'adminarea.contacts.tabs' , 'url' => route ( 'adminarea.contacts.stash' ) , 'id' => "adminarea-contacts-{$contact->getRouteKey()}-import-table" , ] ) -> render ( 'cortex/foundation::adminarea.pages.datatable-dropzone' ) ; }
Import contacts.

@TODO: Refactor required! Do we need import for bookings? Yes? refactor then!

@param \Cortex\Contacts\Models\Contact                      $contact
@param \Cortex\Foundation\DataTables\ImportRecordsDataTable $importRecordsDataTable

@return \Illuminate\View\View
Import contacts .