EMfinanga
1 month ago
152
1
Laravel

Min/max width is undefined for table rows

Posted 1 month ago by EMfinanga

who can assist on this error, am using DomPdf laravel.

 <!DOCTYPE html>
 <html>

body{ font-family: arial; font-size: 11px; } table, th, td { border: 1px solid black; border-collapse: collapse; }

    <table  width="50%" align="center" style="margin-top: 200px;margin-bottom: 200px;" >
  <!--  <tr>
   <td><hr width="100%"></td>
   </tr> -->
     <tr>
      <td  align="right">
        <address>
        NAVIMEX AFRICA LIMITED <br>
        P.o.Box  4678 , Dodoma <br>
        0719 260 602 <br>
       </address>

    </td>

  </tr>

     <tr>
     <!-- <td align="left">Customer Address: </td> -->
       <td align="left">
       <address>
       <strong>{{$cash1->customer_cash->name}}</strong><br>
          {{$cash1->customer_cash->phone}}<br>
       </address>
       </td>
     </tr>

  <!-- <tr>
  <td><hr width="100%"></td>
   </tr> -->
   <tr>
   <td>
       <table width="100%">
       <td>Receipt No:</td>
       <td align="right" ><strong>{{$cash1->vch_no}}</strong></td>
       <tr>
       <td>Date:</td>
       <td align="right"> <small>{{$cash1->created_at->format('Y-m-d')}}</small></td>

      </tr>
    </table>
  </td>
</tr>

<!-- <tr>
  <td><hr width="100%" align="right"></td>
 </tr> -->

<tr>
  <td>
      <table  width="100%" cellpadding="0" cellspacing="0" align="center" >
       
        <tr>
          <td><b>Items</b></td>
          <td><b>Store</b></td>
          <td><b>Qnty</b></td>
          <td><b>Rate</b></td>
          <td align="right">Amount</td>
        </tr>
        
        
          <!-- @foreach($cash as $dt) -->
        <tr>
          <td>{{$dt->items->name}}</td>
          <td>{{$dt->store->name}}</td>
          <td>{{$dt->quantity}}</td>
          <td>{{$dt->rate}}</td>
          <td align="right">{{number_format($dt->amount,2)}}</td>
        </tr>
        <!-- @endforeach -->
       
      </table>
    </td>
</tr>

<!--   <tr>
   <td><hr width="30%" align="right"></td>
    </tr> -->
      <tr>
     <td>
      <table width="100%" align="center" >
       <tr>
            <td><b>Grand Total:</b></td>
            <td align="right">{{number_format($GrandTotal,2)}}</td>
          </tr>
        
        </table>
          </td>
       </tr>

   <tr>
         <td><hr width="30%" align="right"></td>
          </tr>

   <tr>
     <td><strong>{{$AmountWord}}</strong></td>
     </tr>

    <tr>
        <td colspan="6" align="center"><i>Thanks for Shopping. Visit Again!</i></td>
      </tr>

      <tr>
       <td>
        <table width="100%" cellpadding="0" cellspacing="0" align="center" >
         <tr>
          <td><a  href="{{url('cash_sales/index')}}">Back</a></td>
          <td align="right"><a href="{{url('cash_sales/print', $dt->vch_no)}}">Print</a></td>
        </tr>
        
      </table>
    </td>
  </tr>

Generated by Computer:

Please sign in or create an account to participate in this conversation.