@extends('layouts.manage')
@section('title', __('manage.product-manager'))

@section('header')
  <a href="{{ route('manage.product.index') }}" class="{{ Nav::isRoute('manage.product.index') }}">
    <span class="menu-icon">
      <img src="{{ asset($storage_url.'img/manage-icons/products.jpg') }}" alt="">
    </span><span class="menu-text">
      @lang('manage.product-manager')
    </span>
  </a>
@endsection

@section('content')

  <div class="container-fluid">

		<div class="row">
  		<div class="col-xs-12">

  			@include('flash::message')
					
					<header class="m-b-10">
						<a href="{{ route('manage.category.create') }}" class="btn btn-default btn-sm">
							<i class="fa fa-plus"></i> @lang('manage.add-category')
						</a>
						<a href="{{ route('manage.product.create') }}" class="btn btn-default btn-sm">
							<i class="fa fa-plus"></i> @lang('manage.add-product')
						</a>	
					</header>

					{{-- table --}}
					<div class="table-responsive">

	    			<table class="table table-hover dt-initiate" data-url="{{ route('manage.api.products') }}">
					    <thead>
						    <tr>
						    	<th data-column="DT_Row_Index" data-search="false">#</th>
						    	<th data-column="product_category">@lang('manage.category')</th>
						    	<th data-column="product_name">@lang('manage.name')</th>
						    	<th data-column="product_weight">@lang('manage.weight')</th>
						    	<th data-column="product_stock">@lang('manage.stock')</th>
						    	<th data-column="product_price">@lang('manage.price')</th>
						    	<th data-column="product_margin">@lang('manage.margin')</th>
					        <th data-column="action" data-order="false" data-search="false" style="min-width: 65px;">@lang('manage.action')</th>
						    </tr>
					    </thead>
					    <tbody>
					    	<tr></tr>
					    </tbody>
						</table>
												
	    			</div>
	    		{{-- /. table --}}

			</div>
		</div>

	</div>					
@endsection
