@php
$path = 'views/livewire/frontend/layouts/detail';
$file_name = get_detail_page($section->id);
@endphp
@if(has_view_file($file_name.'.blade.php',$path))
@livewire('frontend.layouts.detail.'.$file_name,['section_id'=>$section->id,'record_id'=>$id])
@endif
@endsection