Spamworldpro Mini Shell
Spamworldpro


Server : Apache
System : Linux server2.corals.io 4.18.0-348.2.1.el8_5.x86_64 #1 SMP Mon Nov 15 09:17:08 EST 2021 x86_64
User : corals ( 1002)
PHP Version : 7.4.33
Disable Function : exec,passthru,shell_exec,system
Directory :  /home/corals/rentpix.corals.io/Corals/modules/RentPix/config/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /home/corals/rentpix.corals.io/Corals/modules/RentPix/config/rentPix.php
<?php

return [
    'models' => [
        'inspection' => [
            'presenter' => \Corals\Modules\RentPix\Transformers\InspectionPresenter::class,
            'resource_url' => 'rentpix/inspections',
            'actions' => [
                'pdf' => [
                    'icon' => 'fa fa-fw fa-file-pdf-o',
                    'class' => 'btn btn-warning btn-sm',
                    'href_pattern' => [
                        'pattern' => '[arg]/pdf',
                        'replace' => ['return $object->getShowUrl();'],
                    ],
                    'target' => '_blank',
                    'label_pattern' => [
                        'pattern' => '[arg]',
                        'replace' => ["return trans('RentPix::labels.inspection.pdf');"],
                    ],
                    'policies' => ['view'],
                ],
                'open_inspection' => [
                    'icon' => 'fa fa-fw fa-square-o',
                    'href_pattern' => [
                        'pattern' => '[arg]/open-inspection',
                        'replace' => ['return $object->getShowUrl();'],
                    ],
                    'label_pattern' => [
                        'pattern' => '[arg]',
                        'replace' => ["return trans('RentPix::labels.inspection.open_inspection');"],
                    ],
                    'policies' => ['openInspection'],
                    'data' => [
                        'action' => 'post',
                        'table' => '#InspectionsDataTable',
                        'confirmation_pattern' => [
                            'pattern' => '[arg]',
                            'replace' => ["return trans('RentPix::labels.inspection.open_inspection_confirmation');"],
                        ],
                    ],
                ],
                'complete_inspection' => [
                    'icon' => 'fa fa-fw fa-square',
                    'href_pattern' => [
                        'pattern' => '[arg]/complete-inspection',
                        'replace' => ['return $object->getShowUrl();'],
                    ],
                    'label_pattern' => [
                        'pattern' => '[arg]',
                        'replace' => ["return trans('RentPix::labels.inspection.complete_inspection');"],
                    ],
                    'policies' => ['completeInspection'],
                    'data' => [
                        'action' => 'post',
                        'table' => '#InspectionsDataTable',
                        'confirmation_pattern' => [
                            'pattern' => '[arg]',
                            'replace' => ["return trans('RentPix::labels.inspection.complete_inspection_confirmation');"],
                        ],
                    ],
                ],
                'fetch_drivers' => [
                    'icon' => 'fa fa-fw fa-truck',
                    'href_pattern' => [
                        'pattern' => '[arg]/fetch-drivers',
                        'replace' => ['return $object->getShowUrl();'],
                    ],
                    'label_pattern' => [
                        'pattern' => '[arg]',
                        'replace' => ["return trans('RentPix::labels.inspection.fetch_drivers');"],
                    ],
                    'policies' => ['fetchDrivers'],
                    'data' => [
                        'action' => 'post',
                        'table' => '#InspectionsDataTable',
                        'confirmation_pattern' => [
                            'pattern' => '[arg]',
                            'replace' => ["return trans('RentPix::labels.inspection.fetch_drivers_confirmation');"],
                        ],
                    ],
                ],
                'add_note' => [
                    'icon' => 'fa fa-fw fa-plus',
                    'class' => 'btn btn-primary btn-sm',
                    'href_pattern' => [
                        'pattern' => '[arg]/add-note',
                        'replace' => ['return $object->getShowUrl();']
                    ],
                    'label_pattern' => [
                        'pattern' => '[arg]',
                        'replace' => ['return trans("RentPix::labels.add_note");']
                    ],
                    'policies' => ['create'],
                    'policies_model' => \Corals\Modules\Utility\Models\Comment\Comment::class,
                    'data' => [
                        'action' => 'modal-load',
                        'title_pattern' => [
                            'pattern' => '[arg]',
                            'replace' => ['return trans("RentPix::labels.add_note");']
                        ],
                    ],
                ],
            ],
            'node_path' => env('NODE_PATH', ''),
        ],
        'unit' => [
            'presenter' => \Corals\Modules\RentPix\Transformers\UnitPresenter::class,
            'resource_url' => 'rentpix/units',
        ],
        'reservation' => [
            'presenter' => \Corals\Modules\RentPix\Transformers\ReservationPresenter::class,
            'resource_url' => 'rentpix/reservations',
            'actions' => [
                're_fetch_reservation' => [
                    'icon' => 'fa fa-fw fa-plug',
                    'href_pattern' => [
                        'pattern' => '[arg]/re-fetch-reservation',
                        'replace' => ['return $object->getShowUrl();'],
                    ],
                    'label_pattern' => [
                        'pattern' => '[arg]',
                        'replace' => ["return trans('RentPix::labels.reservation.re_fetch_reservation');"],
                    ],
                    'policies' => ['reFetchReservation'],
                    'data' => [
                        'action' => 'post',
                        'table' => '#ReservationsDataTable',
                        'confirmation_pattern' => [
                            'pattern' => '[arg]',
                            'replace' => ["return trans('RentPix::labels.reservation.re_fetch_reservation_confirmation');"],
                        ],
                    ],
                ],
            ],
        ],
        'customer' => [
            'presenter' => \Corals\Modules\RentPix\Transformers\CustomerPresenter::class,
            'resource_url' => 'rentpix/customers',
        ],
        'driver' => [
            'presenter' => \Corals\Modules\RentPix\Transformers\DriverPresenter::class,
            'resource_url' => 'rentpix/drivers',
        ],
        'failed_inspection' => [
            'presenter' => \Corals\Modules\RentPix\Transformers\FailedInspectionPresenter::class,
            'resource_url' => 'rentpix/failed-inspections',
            'actions' => [
                'resubmit' => [
                    'icon' => 'fa fa-paper-plane',
                    'href_pattern' => [
                        'pattern' => '[arg]/resubmit',
                        'replace' => ['return $object->getShowURL();'],
                    ],
                    'label_pattern' => [
                        'pattern' => '[arg]',
                        'replace' => ["return trans('RentPix::labels.failed_inspection.resubmit');"],
                    ],
                    'policies' => ['update'],
                    'data' => [
                        'action' => 'post',
                        'table' => '#FailedInspectionsDataTable',
                        'confirmation_pattern' => [
                            'pattern' => '[arg]',
                            'replace' => ["return trans('RentPix::labels.failed_inspection.resubmit_confirmation');"],
                        ],
                    ],
                ],
            ],
        ],
        'rate_code' => [
            'presenter' => \Corals\Modules\RentPix\Transformers\RateCodePresenter::class,
            'resource_url' => 'rentpix/rate_codes',
            'actions' => [
                'photos_setup' => [
                    'icon' => 'fa fa-fw fa-picture-o',
                    'href_pattern' => [
                        'pattern' => '[arg]/photos-setup',
                        'replace' => ['return $object->getShowUrl();']
                    ],
                    'class' => 'btn btn-success btn-sm',
                    'label_pattern' => [
                        'pattern' => '[arg]',
                        'replace' => ['return trans("RentPix::labels.rate_code.photos_setup_btn");']
                    ],
                    'policies' => [],
                    'data' => [
                        'action' => 'modal-load',
                        'title_pattern' => [
                            'pattern' => '[arg]',
                            'replace' => ['return trans("RentPix::labels.rate_code.photos_setup_btn");']
                        ],
                    ],
                ],
            ],
        ],
    ],
    'adminApiToken' => env('RENTPIX_ADMIN_API_TOKEN')
];

Spamworldpro Mini