Файловый менеджер - Редактировать - /home/clickysoft/public_html/benchexc.clickysoft.net/app/Http/Controllers/Admin/OpportunityController.php
Назад
<?php namespace App\Http\Controllers\Admin; use App\Http\Controllers\Controller; use App\Interfaces\Admin\OpportunityRepositoryInterface; use App\Models\opportunity; use Illuminate\Http\Request; class OpportunityController extends Controller { private OpportunityRepositoryInterface $opportunityRepository; public function __construct(OpportunityRepositoryInterface $opportunityRepository) { return $this->opportunityRepository =$opportunityRepository; } public function companyOpportunity($id) { if (request()->ajax()) { return $this->opportunityRepository->getCompanyOpportunityDataTable($id); } return view('admin.opportunity.company-opportunity'); } public function companyOpportunityDetail($id) { $companyOpportunity = opportunity::where('id',$id)->first(); return view('admin.opportunity.company-opportunity-detail',compact('companyOpportunity')); } public function index() { if (request()->ajax()) { return $this->opportunityRepository->getDataTable(); } return view('admin.opportunity.index'); } public function statusUpdate(Request $request,$id) { return $this->opportunityRepository->updateStatus($request,$id); } public function Update($id) { $opportunity = opportunity::where('id',$id)->first(); return view('admin.opportunity.update',compact('opportunity')); } public function updateData(Request $request,$id) { return $this->opportunityRepository->update($request,$id); } }
| ver. 1.4 |
Github
|
.
| PHP 8.1.29 | Генерация страницы: 0 |
proxy
|
phpinfo
|
Настройка