@extends('layout.default')
@section('content')
<div class="row">
    <div class="col-xs-12 col-sm-6">
        @if (Session::has('success'))
        <div class="alert alert-success" style="width: 1100px;">
            {{ Session::get('success') }}
        </div>
        @endif
        <div class="box" style="width: 1100px;">
            <div class="box-content my_content">
                <h5 class="page-header">
                    <b>Reports to Modify</b>
                </h5>   
                <table class="table">
                    <thead>
                        <tr>
                            <th>#</th>
                            <th style="width: 90px;">Date</th>
                            <th style="width: 100px;">Market Place</th>
                            <th style="width: 155px;">Order ID</th>
                            <th style="width: 120px;">SKU</th>
                            <th class="amount">Sale</th>
                            <th class="amount">Shipping</th>
                            <th class="amount">Net Cost</th>
                            <th>Quantity</th>
                            <th class="amount">Tax</th>
                            <th style="padding-left: 30px;width: 40px;">Source</th>
                            <th class="amount" style="width: 10px;">Commission</th>
                            <th></th>
                            <th></th>
                        </tr>
                    </thead>
                    <tbody>
                        @foreach ($reports as $key=>$report)
                        <tr>
                            <td>{{ $key+1 }}</td>
                            <td>{{ $report->report_date }}</td>
                            <td>{{ $report->name }}</td>
                            <td>{{ $report->report_order_id }}</td>
                            <td>{{ $report->report_item_sku }}</td>
                            <td class="amount">${{ number_format($report->report_selling_price, 2) }}</td>
                            <td class="amount">${{ number_format($report->report_shipping_cost, 2) }}</td>
                            <td class="amount">${{ number_format($report->report_net_cost, 2) }}</td>
                            <td style="text-align: center;">{{ $report->report_item_quantity }}</td>
                            <td class="amount">${{ number_format($report->report_tax, 2) }}</td>
                            <td style="padding-left: 30px;">{{ $report->source_name }}</td>
                            <td class="amount">${{ number_format($report->report_market_place_comminsion, 2) }}</td>
                            <td>
                                <a title="Edit" href="reports/{{ $report->report_id }}">
                                    <img src="{{asset('images/edit.png')}}" height="20" width="20" alt="Edit">
                                </a>
                            </td>
                            <td>
                                <a title="Delete" href="report_delete/{{ $report->report_id }}"">
                                    <img src="{{asset('images/trash_icon.png')}}" height="20" width="20" alt="Delete">
                                </a>
                            </td>
                        </tr>
                        @endforeach
                    </tbody>
                </table>
            </div>
        </div>
    </div>
</div>
@stop