Rendering Dynamic Content In Blade

Posted 4 months ago by kshitizmittal

Routes :- web.php

Route::get('/bidvw',function () {
    return view('bilayout.bidvw');
});
Route::get('/bidashboard',function () {
    return view('bilayout.bidashboard');    
});

layout.blade.php :-

@include('project_layout.header')
<!-- ****************************** Table section  ******************************* -->
<section class="main_top_box_wrapper">
    <div class="col-md-12 headingArea ">
        <div id="breadcrumb" class="breadcrumbs">
            Admin<span class="symbol"> &gt; </span>
            <span class="currentLocation">Behaviouer Issue</span>
        </div>
        <div class="title pull-left">
            <h3>Behaviouer Issue</h3>
        </div>
    </div>
    
    <div class="main_box_wrapper">  
        <!-- Buttons -->
        @can('Add BI')
            <!-- Buttons -->
           <div class="button_box">
                <a href="{{ action('[email protected]') }}" class="blue_button"><i class="fa fa-sign-language"></i> Assign Behaviour Issue</a>              
            </div>
        @endcan

        <div class="nav-tabs-custom">
            <ul class="nav nav-tabs">
                <li><a href="{{ url('/bidashboard') }}" data-toggle="tab">Dashboard</a></li> 
                <li><a href="{{ url('/bidvw') }}" data-toggle="tab">Documented Verbal Warning</a></li> 
                <li><a href="#" data-toggle="tab">Warning Letter</a></li> 
                <li><a href="#" data-toggle="tab">CAP-1</a></li>
                <li><a href="#" data-toggle="tab">CAP-2</a></li> 
                <li><a href="#" data-toggle="tab">Observation</a></li> 
                <li><a href="#" data-toggle="tab">Status</a></li> 
            </ul>           

            <!-- ******** Tab section ******** -->

            <div class="tab-content">
                @yield('content')
            </div>
        </div>  
    </div>           
</section>

@include('project_layout.footer')

bidvw.blade.php :-

@extends('bilayout.bilayout')
@section('content')
    <p>Documented Verbal Warning</p>
@stop

bidashboard.blade.php :-

@extends('bilayout.bilayout')
@section('content')
    <p>This is my Dashboard content.</p>
@stop

Unable to route successfully. Please help!!!

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

Reply to

Use Markdown with GitHub-flavored code blocks.