This commit is contained in:
ericli1018
2025-06-13 12:24:35 +08:00
parent 1caae33c43
commit 6dfe3e0677
74 changed files with 1497 additions and 253 deletions

View File

@ -21,12 +21,21 @@ class SupportEcosystemPartnersController extends Controller
->orderBy('lft', 'asc')
->orderBy('id', 'desc')
->select('id', 'name');
if ($catalogId == 0)
{
$catalogRowsGet = $catalogRows->get();
foreach ($catalogRowsGet as $row)
{
$catalogId = $row->id;
break;
}
}
$dataRows = \App\Models\SupportEcosystemPartner::where('support_ecosystem_partner_catalog_id', '=', $catalogId)
->where('is_front_show', '=', true)
->orderBy('title', 'desc')
->orderBy('title', 'asc')
->select('id', 'title', 'description', 'photos', 'website');
return view('support-ecosystem-partners', [
'catalogRows' => $catalogRows->get(),
'catalogCurrentId' => $catalogId,