@extends('home') @section('title') @lang('site.site_name') @endsection @section('styles') {!! Html::style(Theme::current()->assetPath.'/global/plugins/bootstrap-markdown/css/bootstrap-markdown.min.css') !!} {!! Html::style(Theme::current()->assetPath.'/global/plugins/bootstrap-fileinput/bootstrap-fileinput.css') !!} {!! Html::style(Theme::current()->assetPath.'/global/plugins/bootstrap-switch/css/bootstrap-switch.min.css') !!} @endsection @section('content')
{{--
{{__('Product management')}}

--}} {!! Form::open(array('route' => 'admin.product.index','method' => 'PUT', 'class' => 'form-inline margin-bottom-0','id' => 'myform')) !!}
{!! __('Quantity') !!} -
{{ Form::close() }} @if ($products->total() > 0)
{!! __('Results No') !!} ({{ $products->total() }} {!! __('Item') !!})
@foreach ($products as $index => $item) @endforeach
{{__('Item')}} {{__('Category')}} {{__('Selling price')}} {{__('Quantity')}} {{__('Status')}} {{__('Action')}}
{{ $loop->index + $products->firstItem() }} @if ($item->photo) @else @endif @if ($item->depth > 1) {!! str_repeat('-',$item->depth) !!}◄ @endif {{ $item->title }} {{ @$item->Category->title }} {{ $item->price }} {{ $item->stock }} {{ Form::open(['method' => 'Put', 'route' => ['product.publish', $item->id]]) }} @if ($item->publish == 1) @elseif ($item->publish == -1) @else @endif {{ Form::close() }} {{ Form::open(['method' => 'DELETE', 'route' => ['admin.product.destroy', $item->id]]) }} {{ Form::close() }}
@else

{!! __('No Results') !!}


@endif
@endsection @section('scripts') {!! Html::script(Theme::current()->assetPath.'/global/plugins/bootstrap-fileinput/bootstrap-fileinput.js') !!} {!! Html::script(Theme::current()->assetPath.'/global/plugins/bootstrap-markdown/lib/markdown.js') !!} {!! Html::script(Theme::current()->assetPath.'/global/plugins/bootstrap-switch/js/bootstrap-switch.min.js') !!} {!! Html::script(Theme::current()->assetPath.'/global/plugins/bootstrap-markdown/js/bootstrap-markdown.js') !!} {!! Html::script(Theme::current()->assetPath.'/global/plugins/jquery-ui/jquery-ui.min.js') !!} @endsection