Laravel seo hack trick

header.blade.php

  <!doctype html>
<html lang="en">
  <head>
    <!-- Required meta tags -->
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">


    @yield('seo')


    <!-- Bootstrap CSS -->
    <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css">
   <script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.7/umd/popper.min.js"></script>
  <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.4.1/jquery.min.js"></script>
  <script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.3.1/js/bootstrap.min.js"></script>
  <link rel="stylesheet" type="text/css" href="https://cdn.datatables.net/v/dt/dt-1.10.18/datatables.min.css"/>
<script type="text/javascript" src="https://cdn.datatables.net/v/dt/dt-1.10.18/datatables.min.js"></script>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
{{-- san San-Francisco Font --}}
<link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/mailtoharshit/San-Francisco-Font-/sanfrancisco.css">
  <link rel="stylesheet" href="{{ asset('/index.css') }}">
  

    <!-- <link rel="stylesheet" href="{{ asset('/homejs.js') }}"> -->
    <title>Aditya Kumar Singh</title>
  </head>
  <body>
  <nav class="navbar navbar-expand-lg navbar-red navbar-dark p-0">
    <!-- <div class="wrapper"> </div> -->
    <div class="container-fluid"> <a class="navbar-brand p-0" href="/">
     
    <button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
    <span class="navbar-toggler-icon"></span>
  </button>
  <div class="collapse navbar-collapse" id="navbarSupportedContent">
    <ul class="navbar-nav mr-auto ml-auto">

                <li class="nav-item"> <a class="nav-link mr-4 " aria-current="page" href="/">Home</a> </li>
                <!-- <li class="nav-item"> <a class="nav-link mr-4" href="#">Features</a> </li> -->
                <li class="nav-item"> <a class="nav-link mr-4" href="/about" call_type="About">About us</a> </li>
                <!-- <li class="nav-item"> <a class="nav-link mr-4" href="#">Fees</a> </li> -->
                <li class="nav-item"> <a class="nav-link mr-4" href="/contact" call_type="Contact">contact us</a> </li>
                <!-- <li class="nav-item"> <a class="nav-link mr-4" href="#"><i class="fa fa-search"></i></a> </li> -->
            </ul>
            <!-- <div class="d-flex flex-column sim"> <a class="btn btn-light action-button" role="button" href="#">Sign Up <i class="fa fa-arrow-right"></i></a> </div> -->
        </div>
    </div>
</nav>
   
  @yield('content') 
  @yield('footer')

index.blade.php

@extends('header')
@section('seo')
<title>Aditya kumar singh</title>
<meta name="description" content="aditya kumar singh">
<meta name=”robots” content="index, follow">
@endsection
  @section('content') 


<!-- HTML TAG -->

@endsection
@extends('footer')

contact.blade.php

@extends('header')
@section('seo')
<title>Aditya kumar singh</title>
<meta name="description" content="aditya kumar singh">
<meta name=”robots” content="index, follow">
@endsection
  @section('content') 
  <section id="contact" style="background-color:#f5f5f5">
<div class="container py-5">
	<div class="row justify-content-center align-items-center">
		<div class="col-12 col-sm-12 col-md-10 col-lg-10">
    
      <form action="/add-contact " method="post">
      @csrf
      <div class="text-center py-4"><h3 class="display-4 bold orange">Contact Us</h3>
                                </div>
                                @if ($message = Session::get('success'))
        <div class="alert alert-success">
            <p>{{ $message }}</p>
        </div>
    @endif
                                <div class="row" style="margin:0px 0px">
                                <div class="col-lg-6 col-md-6 col-sm-6" style="padding-bottom: 10px;">
                                <label for="name" class="mb-2"><b>Name</b></label>
                                <input class="form-control shadow p-4 mb-4 bg-white rounded @error('name') is-invalid @enderror" name="name" placeholder="Marth Wanjiku" type="text" />
                                @error('name')
<div class="alert alert-danger mt-1 mb-1">{{ $message }}</div>
@enderror
  </div>
                                <div class="col-lg-6 col-md-6 col-sm-6" style="padding-bottom: 10px;">
                                <label for="email" class="mb-2"><b>Email</b></label> 
                                 <input class="form-control shadow p-4 mb-4 bg-white rounded @error('email') is-invalid @enderror" name="email" placeholder="what's your email?" type="text"  />
                                 @error('email')
<div class="alert alert-danger mt-1 mb-1">{{ $message }}</div>
@enderror
   </div>
                                </div>
                                <div class="col-lg-12 col-md-12 col-sm-12" style="padding-bottom: 10px;">
                                <label for="msg" class="mb-2"><b>Massage</b></label>
                                <textarea rows="6" name="message" id="message2" class="form-control shadow p-4 mb-4 bg-white rounded @error('message') is-invalid @enderror" placeholder="How Can Help You?" ></textarea> 
                                @error('message')
<div class="alert alert-danger mt-1 mb-1">{{ $message }}</div>
@enderror
   </div>
                                <div class="btn-left">
                                   <input type="submit" name="sent" value="SUBMIT" class="btn btn-info btn-block rounded-0 py-2">
                                </div>
</div>
                    </form>
	  </div>
  </div>
</div>
</section>

  @endsection
@extends('footer')

Leave a Reply