release
This commit is contained in:
@ -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,
|
||||
|
Reference in New Issue
Block a user