@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 Categories</a>
                                    </li>
                                    <li class="breadcrumb-item"><a href="#!">Category 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><i>i</i></th>
                                    </tr>
                                </thead>
                                <tbody>
                                   <?php 
                                   $key = 1;
                                   foreach ($category as $category) { ?>
                                    <tr>
                                       <td><?php echo $key; ?></td>
                                       <td><?php echo $category['name']; ?></td>
                                       <td><a href="<?php echo url('/partner/category?id='.base64_encode($category['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
