<!DOCTYPE html>
<html>
<head>
   <title>Nota PDF</title>
   <style type="text/css">
      table td{font: arial 12px;}
      table.data td,
      table.data th{
         border: 1px solid #ccc;
         padding: 5px;
      }
      table.data th{
         text-align: center;
      }
      table.data{ border-collapse: collapse }
   </style>
</head>
<body>

<table width="100%">
  <tr>
	<td rowspan="3" width="60%"><br><img src="../public/images/{{$setting->logo}}" width="150"><br>
     {{ $setting->nama_perusahaan }}<br><br>
     </td>
     <td>Tanggal</td>
     <td>: {{ tanggal_indonesia(date('Y-m-d')) }}</td>
	 <td>Nomor Form Redeem</td>
     <td>: {{ $redeempoint->redeem_no }}</td>
  </tr>     
  <tr>
     <td>Member</td>
     <td>: {{ $member->mbr_nama }}</td>
  </tr>
</table>
         
<table width="100%" class="data">
<thead>
   <tr>
    <th>No</th>
    <th>Deskripsi</th>
    <th>No.VCR</th>
    <th>Point</th>
   </tr>

   <tbody>
    @foreach($detail as $data)
      
    <tr>
       
       <td>{{ $data->redeem_name }}</td>
       <td>{{ $data->vcr_no }}</td>
       <td align="right">{{ format_uang($data->redeem_point) }}</td>
    </tr>
    @endforeach
   
   </tbody>
   <tfoot>
    <tr><td colspan="6" align="right"><b>Total Point</b></td><td align="right"><b>{{ format_uang($redeempoint->redeem_point) }}</b></td></tr>

   </tfoot>
</table>

<table width="100%">
  <tr>
    <td>
      <b>Terimakasih dan sampai jumpa</b>
    </td>
    <td align="center">
      Admin<br><br><br> {{Auth::user()->name}}
    </td>
  </tr>
</table>
</body>
</html>