<div class="content-wrapper">
  <div class="content-header">
     <div class="container-fluid">
        <div class="row mb-2">
           <div class="col-sm-6">
              <h1 class="m-0 text-dark">All Donor Company</h1>
           </div>
           <div class="col-sm-6">
              <ol class="breadcrumb float-sm-right">
                 <li class="breadcrumb-item"><a href="<?php echo base_url() ?>admin/admin/dashboard">Dashboard</a></li>
                 <li class="breadcrumb-item"><a href="#">Donor Company</a></li>
                 <li class="breadcrumb-item active">All Donor Company</li>
              </ol>
           </div>
        </div>
     </div>
  </div>

  <section class="content">
    <div class="container-fluid">
      <div class="card card-default">
        <div class="card-header">
          <h3 class="card-title">View All Donor Company</h3>
          <div class="card-tools">
             <a href="<?php echo base_url()?>/admin/main_page_setting/add_new_brand" class="btn btn-success btn-sm"><i class="fa fa-plus" aria-hidden="true"></i> Add Donor Company</a>
          </div>
        </div>
        <div class="card-body">
           <table id="example1" class="table table-bordered table-striped">
             <thead>
                <tr>
                   <th>id</th>
                   <th>Donor Image</th>
                   <th>Donor Name</th>
                   <th></th>
                </tr>
             </thead>
             <tbody>
                <?php $i=1; foreach ($all_brand as $key => $brand):?>
                <tr>
                   <td><?php echo $i ?></td>
                   <td><img src="<?php echo base_url() ?><?php echo $brand->brand_image ?>" width="100px"></td>
                   <td><?php echo $brand->brand_name ?></td>
                   <td><a href="<?php echo base_url()?>/admin/main_page_setting/edit_brand/<?php echo $brand->brand_id; ?>" class="btn btn-info btn-sm"><i class="fa fa-edit" aria-hidden="true"></i></a>
                      <a class="btn btn-danger btn-sm" onclick="return confirm('Are you sure?')" href="<?php echo base_url() ?>/admin/main_page_setting/delete_brand/<?php echo $brand->brand_id ?>"><i class="fa fa-trash" aria-hidden="true"></i></a>
                   </td>
                </tr>
                <?php $i++; ?>
                <?php endforeach; ?>
             </tbody>
          </table>
        </div>
      </div>
    </div>
  </section>
</div>
