@extends('layout.default')
@section('content')
<a href="{!! URL::to('/add_market_place') !!}">
    <i class="fa fa-list"></i>
    <span>Add Market Place</span>
</a>
<div class="row">
    <div class="col-xs-12 col-sm-6 mid_center">
        <div class="box">
            <div class="box-content my_content">
                <h5 class="page-header">
                    <b>Market Places</b>
                </h5>  
                <table class="table">
                    <thead>
                        <tr>
                            <th>#</th>
                            <th>Name</th>
                            <th class="amount" style="padding-right: 150px;">Commission</th>
                            <th></th>
                        </tr>
                    </thead>
                    <tbody>
                        @foreach ($market_places as $key=>$market_place)
                        <tr>
                            <td>{{ $key+1 }}</td>
                            <td>{{ $market_place->name }}</td>
                            <td class="amount" style="padding-right: 150px;">{{ number_format($market_place->commission, 2) }} %</td>  
                            <td>
                                <a title="Edit" href="market_places/{{ $market_place->id }}">
                                    <img src="{{asset('images/edit.png')}}" height="20" width="20" alt="Edit">
                                </a>
                            </td>    
                        </tr>
                        @endforeach
                    </tbody>
                </table>
            </div>
        </div>
    </div>
</div>
@stop