lundi 17 août 2020

How do i display data on index of row in table2 if a column matching same record exists in table1 using Laravel

What i want is a function that can display info when i have data in Table2 and a column like Serial Number matches that data in Table1 , it should display the row of Table1 on a view button Modal in Table2.

<div class="modal-body">
  <div class="table-responsive">
      <table id="" class="table table-borderless">
           <tbody>
               @foreach($devices as $devices)
               <tr><th>Serial Number :</th><td></td></tr>
               <tr><th> Category :</th><td></td></tr>
               <tr><th> Device Type : </th><td></td></tr>
               <tr><th> Device Make : </th><td></td></tr>
                <tr><th> Device Model :</th><td></td></tr>
                <tr><th> RAM :</th><td></td></tr>
                <tr><th> HDD :</th><td></td></tr>
                <tr><th> Processor :</th><td></td></tr>
                <tr><th> Supplier :</th><td></td></tr>
                <tr><th> Date Of Supply :</th><td></td></tr>
                @endforeach
             </tbody>
       </table>
    </div>
  </div>
enter image description here

enter image description here



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire