@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')}}

{!! $category->title !!} ({!! $products->total() !!})

{!! Form::open(array('route' => 'admin.product.index','method' => 'PUT', 'class' => 'form-inline margin-bottom-0','id' => 'myform')) !!}
{!! Form::close() !!}
@foreach ($products as $index => $item) @endforeach
{{__('Item')}} {{__('Category')}} {{__('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 }} {{ $item->status }} {{ Form::open(['method' => 'DELETE', 'route' => ['admin.product.destroy', $item->id]]) }} {{ Form::close() }}
@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