jeudi 11 août 2016

Laravel 5.1 - @include tag isn't working

I am new for laravel framework.please can you help me find good solution for this.may be this is a small thing.but i didn't tough it unfortunatly.

<!DOCTYPE html>
    <html lang="en">
    <head>
      <title>Site</title>
       <meta charset="utf-8">
      <meta name="viewport" content="width=device-width, initial-scale=1">
     <link rel="stylesheet"    href="http://ift.tt/2baqkoF">
    <script   src="http://ift.tt/1XwG72U">        </script>
      <script     src="http://ift.tt/2baqDzR">        </script>
    </head>
        <body>

<div class="container">

  <div class="panel panel-default">
    <div class="panel-heading">
  <button type="button" class="btn btn-info" id="add">New Site</button>
</div>

<div class="panel-body">
  @include('newSite')
  <table class="table table-hover">
    <caption>Site Info</caption>
    <thead>
      <th>Site ID</th>
      <th>Site Name</th>
      <th>Date</th>
      <th>Description</th>
    </thead>

    <tbody>
      @foreach($sites as $key => $site)
      <tr id="site">
        <td></td>
        <td></td>
        <td></td>
        <td>
          <button class="btn btn-success btn-edit">Edit</button>
          <button value="btn btn-danger btn-delete">Delete</button>
        </td>
      </tr>
          @endforeach
        </tbody>
      </table>
    </div>
  </div>


    <script type="text/javascript">
  $("#add").on('click',function(){
    $('#site').modal('show');
  })
</script>


</div>

 </body>
 </html>

this is a my site.blade.php view file.i need to include newSite.blade.php file to this file.i used @include('newSite') line.but it is not working.also when i put this command not working all below codes.please help me as soon as possible



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire