david19
8 months ago
216
2
Laravel

Very much @include performance?

Posted 8 months ago by david19

Hello Team,

How much reduce includes the performance in blade files? I like this example here, because its much more readable and very clean. I mean put all cards via includes :)

@extends('layouts.app')
@section('inline-css')
<style></style>
@endsection
@section('main-css')
<link href="{{ asset('assets/css/bootstrap.min.css') }}" rel="stylesheet">
@endsection
@section('content')
<div class="container bg-light rounded text-white">
<div class="row">
@include('admin.layouts.sidebar')
<div class="col-xs-12 col-sm-12 col-md-10 col-lg-10 col-xl-10">
@include('card.1')
@include('card.2')
@include('card.3')
@include('card.4')
@include('card.5')
@include('card.6')
@include('card.7')
</div>
</div>
</div>
@endsection
@section('scripts')
<script src="{{ asset('assets/js/jquery-3.4.1.min.js') }}"></script>
<script src="{{ asset('assets/js/bootstrap.min.js') }}"></script>
@endsection

Please sign in or create an account to participate in this conversation.