@extends('layouts.app')

@section('content')
    <section class="page-header row">
        <h2> Partner Requests </h2>
        <ol class="breadcrumb">
            <li><a href="{{ url('') }}"> Dashboard </a></li>
            <li class="active"> Partner Requests </li>
        </ol>
    </section>
    <div class="page-content row">
        <div class="page-content-wrapper no-margin">
            <h3 class="section-title">All Records</h3>
            <div class="sbox">

                <div class="sbox-content">
                    <!-- Toolbar Top -->
                    <div class="toolbar-top">
                        <div class="row">
                            <div class="col-lg-7 col-md-6">
                                @if($access['is_excel'] ==1)
                                    <div style="display: inline-flex">
                                        <button type="button" id="exportBtn" class="btn btn-success" onclick="moduleExport()" style="display: inline-flex; margin-left: 20px">Export CSV</button>
                                        <div id="exportError" class="text-danger" style="margin: auto 15px; display: none">Error while Exporting Data!</div>
                                    </div>
                                @endif
                            </div>

                            <div class="col-lg-5 col-md-6 text-right toolbar-right">
                            </div>
                        </div>
                    </div>
                    <!-- End Toolbar Top -->

                    <div class="row">
                        {!! (isset($search_map) ? $search_map : '') !!}
                    </div>

                    <!-- Table Grid -->
                    <div class="table-responsive">

                        <table class="table table-striped table-hover " id="storeDealsTable">
                            <thead>
                            <tr>
                                <th style="width: 3% !important;" class="number"> No</th>
                                <th>Store Name</th>
                                <th>Product Category</th>
                                <th>Platform</th>
                                <th>Name</th>
                                <th>Job Title</th>
                                <th>Email</th>
                                <th>Phone</th>
                                <th>partnership</th>
                            </tr>
                            </thead>

                            <tbody>
                            @foreach ($partnerRequests as $i => $row)
                                <tr>
                                    <td> {{ ++$i }} </td>
                                    <td>{{$row->store_name}}</td>
                                    <td>{{$row->product_category}}</td>
                                    <td>{{$row->platform}}</td>
                                    <td>{{$row->name}}</td>
                                    <td>{{$row->job_title}}</td>
                                    <td><a href="mailto: {{$row->email}}">{{$row->email}}</a></td>
                                    <td>{{$row->phone}}</td>
                                    <td>{{$row->partnership_type}}</td>
                                </tr>

                            @endforeach

                            </tbody>

                        </table>
                    </div>
                </div>
            </div>
        </div>
    </div>

@stop
