@extends('layouts.app')
<?php
ini_set('memory_limit', '2048M');
$request = request();
?>
@section('content')
<div class="pcoded-content">
    <div class="pcoded-inner-content">
        <div class="main-body">
            <div class="page-wrapper">
                <!-- Page-header start -->
                <div class="page-header card page-body">
                    <div class="row align-items-end">
                        <div class="col-lg-8">
                            <div class="page-header-title">
                                <i class="icofont icofont icofont icofont-file-document bg-c-pink"></i>
                                <div class="d-inline">
                                    <h4></h4>
                                    <span>Partners</span>
                                </div>
                            </div>
                        </div>
                        <div class="col-lg-4">
                            <div class="page-header-breadcrumb">
                                <ul class="breadcrumb-title">
                                    <li class="breadcrumb-item">
                                    <i class="icofont icofont-home"></i>
                                    </li>
                                    <li class="breadcrumb-item"><a href="#!">Partners</a>
                                    </li>
                                    <li class="breadcrumb-item"><a href="#!">Partner List</a>
                                    </li>
                                </ul>
                            </div>
                        </div>
                    </div>
                        <hr>
                        <div class="table-responsive">
                            <table class="table table-hover">
                                <thead>
                                    <tr>
                                        <th>#</th>
                                        <th>Name</th>
                                        <th>Contact Person</th>
                                        <th>Contact</th>
                                        <th>Category</th>
                                        <th><i>i</i></th>
                                    </tr>
                                </thead>
                                <tbody>
                                   <?php 
                                   $key = 1;
                                   foreach ($partners as $partner) { ?>
                                    <tr>
                                       <td><?php echo $key; ?></td>
                                       <td><?php echo $partner['name']; ?></td>
                                       <td><?php echo $partner['contact_person']; ?></td>
                                       <td><?php echo $partner['contact']; ?></td>
                                       <td><?php echo $partner['category']; ?></td>
                                       <td><a href="<?php echo url('/partner/index?id='.base64_encode($partner['id']).'')?>" target="_new" class="ti-pencil"></a> &nbsp;<a href="#" class="ti-close label label-danger"></a> </td> 
                                    </tr>
                                   <?php $key++;} ?>
                                </tbody>
                            </table>
                        </div>
                    
                </div>
                <!-- Page-header end -->
            </div>
        </div>
    </div>
</div>
@endsection
