I can recommend you to look at https://laravel.com/docs/5.5/blade#extending-blade What you can do is make your own Blade Directive that does this snippet of code. So it would become a bit like :
@admin_body
or you can make a custom if statement directive
@administrator
@include('component.adminbody')
@endadministrator
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community