mardi 22 novembre 2016

laravel print results to html

i make this style: http://ift.tt/2f3Z8uM

now i need to insert to this html:

   <div class="trading-info">
  <div class="row" data-sameparent="1">
    <div class="col-4">
      <a href="#" class="info-box large" data-samecol="1">
        <div class="holder">
          <h2>Forex trading</h2>
          <h3>LESSON 1</h3>
          <span class="icon-play block"><img src="images/icon7.png" alt="play"></span>
        </div>
      </a>
    </div>
    <div class="col-8">
      <div class="row" data-sameparent="true" data-samecol="1">
        <div class="col-6">
          <a href="#" class="info-box small" data-samecol="true">
            <div class="holder">
              <h2>Stocks trading</h2>
              <h3>LESSON 1</h3>
              <span class="icon-play small"><img src="images/icon7.png" alt="play"></span>
            </div>
          </a>
        </div>
        <div class="col-6">
          <a href="#" class="info-box small" data-samecol="true">
            <div class="holder">
              <h2>CFD’S trading</h2>
              <h3>LESSON 1</h3>
              <span class="icon-play small"><img src="images/icon7.png" alt="play"></span>
            </div>
          </a>
        </div>
        <div class="col-6 locked">
          <a href="#" class="info-box small lightbox-open" data-samecol="true">
            <div class="holder">
              <h2>Forex trading strategies</h2>
              <h3>LESSON 1</h3>
              <span class="icon-lock small"><img src="images/icon8.png" alt="play"></span>
            </div>
          </a>
        </div>
        <div class="col-6 locked">
          <a href="#" class="info-box small lightbox-open" data-samecol="true">
            <div class="holder">
              <h2>Airsoft trading platform</h2>
              <h3>LESSON 1</h3>
              <span class="icon-lock small"><img src="images/icon8.png" alt="play"></span>
            </div>
          </a>
        </div>
      </div>
    </div>
  </div>
  <div class="row" data-sameparent="true">
    <div class="col-4">
      <a href="#" class="info-box" data-samecol="true">
        <div class="holder">
          <h2>Social trading </h2>
          <h3>LESSON 1</h3>
          <span class="icon-play small"><img src="images/icon7.png" alt="play"></span>
        </div>
      </a>
    </div>
    <div class="col-8">
      <a href="#" class="info-box alt" data-samecol="true">
        <div class="holder">
          <h2>Psychology of trading </h2>
          <h3>LESSON 1</h3>
          <span class="icon-play block"><img src="images/icon7.png" alt="play"></span>
        </div>
      </a>
    </div>
  </div>
  <div class="row" data-sameparent="1">
    <div class="col-4">
      <a href="#" class="info-box" data-samecol="1">
        <div class="holder">
          <h2>Sirix &amp; BX8 trading platforms </h2>
          <h3>LESSON 1</h3>
          <span class="icon-play small"><img src="images/icon7.png" alt="play"></span>
        </div>
      </a>
    </div>
    <div class="col-8">
      <div class="row" data-sameparent="true" data-samecol="1">
        <div class="col-4 no-padding">
          <a href="#" class="info-box" data-samecol="true">
            <div class="holder">
              <h2>Techfinancials trading platform</h2>
              <h3>LESSON 1</h3>
              <span class="icon-play small"><img src="images/icon7.png" alt="play"></span>
            </div>
          </a>
        </div>
        <div class="col-4 no-padding">
          <a href="#" class="info-box" data-samecol="true">
            <div class="holder">
              <h2>Market <br> analysis </h2>
              <h3>LESSON 1</h3>
              <span class="icon-play small"><img src="images/icon7.png" alt="play"></span>
            </div>
          </a>
        </div>
        <div class="col-4 no-padding">
          <a href="#" class="info-box" data-samecol="true">
            <div class="holder">
              <h2>Binary Options Trading </h2>
              <h3>LESSON 1</h3>
              <span class="icon-play small"><img src="images/icon7.png" alt="play"></span>
            </div>
          </a>
        </div>
      </div>
    </div>
  </div>
</div>

the result from the SQL i have there: title, number lessons.

how i can do it? i have different codes in every row and col tags.

im use laravel framework version 5.1



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire