芝麻web文件管理V1.00
编辑当前文件:/home/lekhnath/silverray.com.au/Modules/Property/routes/web.php
name('admin.') ->prefix('admin') ->group(function () { Route::resource('property', PropertyController::class)->names('property'); Route::put('/property/status-update/{id}', [PropertyController::class, 'statusUpdate'])->name('property.status-update'); Route::get('agent-property', [PropertyController::class, 'agentProperty'])->name('agent-property'); Route::delete('delete-agent-property/{id}', [PropertyController::class, 'deleteAgentProperty'])->name('delete-agent-property'); Route::post('/download-property-file', [PropertyController::class, 'downloadPropertyFile'] )->name('download-property-file'); Route::get('property-delete-pdf/{id}', [PropertyController::class, 'deletePdfFile'] )->name('property-delete-pdf'); Route::controller(PropertyController::class)->group(function () { Route::get('property-slider/{property_id}', 'property_slider')->name('property-slider'); Route::put('upload-property-slider/{property_id}', 'upload_property_slider')->name('upload-property-slider'); Route::delete('delete-property-slider/{property_id}', 'delete_property_slider')->name('delete-property-slider'); }); Route::controller(PropertyController::class)->group(function () { Route::get('property-nearest-location/{property_id}', 'nearest_location')->name('property-nearest-location'); Route::post('upload-nearest-location/{property_id}', 'upload_nearest_location')->name('upload-nearest-location'); Route::delete('delete-nearest-location/{property_id}', 'delete_nearest_location')->name('delete-nearest-location'); }); Route::resource('amenity', AminityController::class)->names('amenity')->except('show'); Route::put('/aminity/status-update/{id}', [AminityController::class, 'statusUpdate'])->name('aminity.status-update'); Route::resource('nearest-location', NearestLocationController::class)->names('nearest-location')->except('show'); Route::put('/nearest-location/status-update/{id}', [NearestLocationController::class, 'statusUpdate'])->name('nearest-location.status-update'); Route::resource('property-type', PropertyTypeController::class)->names('property-type')->except('show'); Route::put('/property-type/status-update/{id}', [PropertyTypeController::class, 'statusUpdate'])->name('property-type.status-update'); Route::resource('property-purpose', PropertyPurposeController::class)->names('property-purpose')->except('show'); Route::put('/property-purpose/status-update/{id}', [PropertyPurposeController::class, 'statusUpdate'])->name('property-purpose.status-update'); Route::get( 'property-review', [AdminReviewController::class, 'index'] )->name('review'); Route::delete('review-delete/{id}', [AdminReviewController::class, 'destroy'] )->name('review.delete'); Route::put('review-status/{id}', [AdminReviewController::class, 'changeStatus'] )->name('review-status'); }); Route::group(['as' => 'user.', 'prefix' => 'user', 'middleware' => ['auth:web', 'translation', 'verified']], function () { Route::resource('property', UserPropertyController::class)->names('property'); Route::put('/property/status-update/{id}', [UserPropertyController::class, 'statusUpdate'])->name('property.status-update'); Route::get('/delete/property/{id}', [UserPropertyController::class, 'deleteProperty'])->name('delete.property'); Route::post('/download-property-file', [UserPropertyController::class, 'downloadPropertyFile'] )->name('download-property-file'); Route::get('property-delete-pdf/{id}', [UserPropertyController::class, 'deletePdfFile'] )->name('property-delete-pdf'); Route::controller(UserPropertyController::class)->group(function () { Route::get('property-slider/{property_id}', 'property_slider')->name('property-slider'); Route::put('upload-property-slider/{property_id}', 'upload_property_slider')->name('upload-property-slider'); Route::get('delete-property-slider/{property_id}', 'delete_property_slider')->name('delete-property-slider'); }); Route::controller(UserPropertyController::class)->group(function () { Route::get('property-nearest-location/{property_id}', 'nearest_location')->name('property-nearest-location'); Route::post('upload-nearest-location/{property_id}', 'upload_nearest_location')->name('upload-nearest-location'); Route::get('delete-nearest-location/{property_id}', 'delete_nearest_location')->name('delete-nearest-location'); }); Route::post('languages/update-single', [UserPropertyController::class, 'translateSingleText'])->name('languages.update.single'); Route::get('my-review', [ReviewController::class, 'myReview'] )->name('my-review'); Route::get('client-review', [ReviewController::class, 'clientReview'] )->name( 'client-review' ); Route::post('store-review', [ReviewController::class, 'storeReview'] )->name( 'store-review' ); Route::get('edit-review/{id}', [ReviewController::class, 'editReview'] )->name( 'edit-review' ); Route::post('update-review/{id}', [ReviewController::class, 'updateReview'] )->name( 'update-review' ); Route::get('delete-review/{id}', [ReviewController::class, 'deleteReview'] )->name( 'delete-review' ); }); Route::middleware(['auth:staff', 'translation']) ->name('staff.') ->prefix('staff') ->group(function () { Route::resource('property', StaffPropertyController::class)->names('property'); Route::put('/property/status-update/{id}', [StaffPropertyController::class, 'statusUpdate'])->name('property.status-update'); Route::post('/download-property-file', [StaffPropertyController::class, 'downloadPropertyFile'] )->name('download-property-file'); Route::get('property-delete-pdf/{id}', [StaffPropertyController::class, 'deletePdfFile'] )->name('property-delete-pdf'); Route::controller(StaffPropertyController::class)->group(function () { Route::get('property-slider/{property_id}', 'property_slider')->name('property-slider'); Route::put('upload-property-slider/{property_id}', 'upload_property_slider')->name('upload-property-slider'); Route::delete('delete-property-slider/{property_id}', 'delete_property_slider')->name('delete-property-slider'); }); Route::controller(StaffPropertyController::class)->group(function () { Route::get('property-nearest-location/{property_id}', 'nearest_location')->name('property-nearest-location'); Route::post('upload-nearest-location/{property_id}', 'upload_nearest_location')->name('upload-nearest-location'); Route::delete('delete-nearest-location/{property_id}', 'delete_nearest_location')->name('delete-nearest-location'); }); Route::post('languages/update-single', [StaffPropertyController::class, 'translateSingleText'])->name('languages.update.single'); });