@extends('admin.main')
@section('content')
<style>
    .previewImage {
        height: 150px;
        width: 95%;
        overflow: hidden;
        object-fit: contain;
    }
</style>
<div class="content-wrapper">
    <!-- Content Header (Page header) -->
    <section class="content-header">
    <h1>
        Tax Settings
        <!-- <small>Optional description</small> -->
    </h1>
    <ol class="breadcrumb">
        <li><a href="{{ url ('admin') }}"><i class="fa fa-dashboard"></i> Dashboard</a></li>
        <li class="active"> Tax Settings</li>
    </ol>
    </section>

    <!-- Main content -->
    <section class="content container-fluid">
        <div class="row">
            <div class="col-md-12">
                <div class="box">
                    <div class="box-header with-border">
                       <h4 class="box-title">Tax Settings</h4>
                       <button class="btn btn-primary pull-right" data-toggle="modal" data-target="#modal_show_stores"> <i class="fa fa-plus"></i> Add</button>
                    </div>
                    <div class="box-body">
                        <div class="row">
                            {{-- <div class="col-md-3">
                                <div class="form-group">
                                    <label class="control-label">Filter By Store</label>
                                    <div id="store_filter"></div>
                                </div>
                            </div> --}}
                            <div class="col-md-12">
                                <table class="table table-bordered table-condensed nowrap" id="tbl_commission">
                                    <thead>
                                        <tr>
                                            <th>Id</th>
                                            <th>Teamstore</th>
                                            <th>Date Created</th>
                                            <th class="text-center">Action</th>
                                        </tr>
                                    </thead>
                                    <tbody>
                                        @foreach($taxLists as $taxList)
                                            <tr>
                                              <td>{{ $taxList->Id }}</td>
                                              <td>{{ $taxList->StoreName }}</td>
                                              <td>{{ $taxList->DateCreated }}</td>
                                              <td class="text-center">
                                                <button class="btn btn-danger btn-xs">Remove</button>
                                              </td>
                                            </tr>
                                        @endforeach
                                    </tbody>
                                </table>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </section>
    <!-- /.content -->
</div>

<div class="modal fade" id="modal_show_stores" role="dialog">
    <div class="modal-dialog">
        <!-- Modal content-->
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal">&times;</button>
                <h4 class="modal-title">List of Teamstore</h4>
            </div>
            <div class="modal-body">
                <div id="modal_store_order_details_body_content">
                    <p> Loading content <i class="fa fa-spinner fa-spin"></i> </p>
                </div>
            </div>
            <div class="modal-footer">
                <button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
            </div>
        </div>
    </div>
</div>
@endsection