Design Dashboard Page

In this tutorial, we are going to learn how to design dashboard.


Step 1 : Open your dashboard page (successlogin.blade.php)  and create design for product list.

Complete Code : 

<!DOCTYPE html>
<html lang="en">
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width, initial-scale=1">

<!-- Load bootstrap link -->
  <link rel="stylesheet" href="">
  <script src=""></script>
  <script src=""></script>

<div class="container" style="margin-top: 20px;">
  <div class="row">
    <div class="col-sm-12">
    	<h1 style="text-align: center;">Welcome To Dashboard</h1>
      <div class="alert alert-success success-block" style="text-align: center;">
             Welcome : {{ Auth::user()->name }} | {{ Auth::user()->email }}<br> 
            <a href="{{url('/main/logout')}}">Logout</a>
  <div class="row">
    <div class="col-sm-2"></div>
    <div class="col-sm-8">
      <h2>Product List</h2>

      <!-- Create button to add product -->
      <button class="btn btn-info add_product">Add Product</button>

      <!-- Product Table -->
      <table class="table table-striped table-bordered">
          <thead class="btn-primary">
              <th>Product Name</th>
              <th>Product Price</th>
              <th>Product Quantity</th>
                <a href="#" class="btn btn-success">Active</a>
                <a href="#" class="btn btn-primary">Edit</a>
    <div class="col-sm-2"></div>

<!-- Open Modal Popup Code Start Here-->
<div id="add_modal_popup" class="modal fade" role="dialog">
  <div class="modal-dialog">
    <div class="modal-content">
      <div class="modal-header">
        <h4 class="modal-title">Add Product</h4>
      <form method="post" action="#">
        <div class="modal-body">
          <label>Product Name : </label>
          <input type="text" class="form-control" name="product_name" required>
          <label>Product Price : </label>
          <input type="text" class="form-control" name="product_price" required>
          <label>Product Quantity : </label>
          <input type="text" class="form-control" name="product_quantity" required>
          <label>Status : </label>
          <select name="status" class="form-control" required>
            <option value="">---Select Status---</option>
            <option value="1">Active</option>
            <option value="0">Inactive</option>
        <div class="modal-footer">
          <button type="button" class="btn btn-danger" data-dismiss="modal">Close</button>
          <button class="btn btn-success" type="submit">Save</button>
<!-- Open Modal Popup Code End Here-->

<script type="text/javascript">

      //Create jquery code to open modal popup



Result :

Source Code:

Small Laravel Project

In this project. We are providing you, how to create small project in Laravel....

Source Code