{!! view_render_event('bagisto.shop.layout.footer.before') !!} {{-- The category repository is injected directly here because there is no way to retrieve it from the view composer, as this is an anonymous component. --}} @inject('themeCustomizationRepository', 'Webkul\Shop\Repositories\ThemeCustomizationRepository') {{-- This code needs to be refactored to reduce the amount of PHP in the Blade template as much as possible. --}} @php $customization = $themeCustomizationRepository->findOneWhere([ 'type' => 'footer_links', 'status' => 1, 'channel_id' => core()->getCurrentChannel()->id, ]); @endphp {!! view_render_event('bagisto.shop.layout.footer.after') !!}