@extends('layouts.default') @section('content')

{{Lang::get('messages.products')}} {{Lang::get('messages.on_sale')}}



@if(!$activeProducts->isEmpty()) @foreach($activeProducts as $product)

{{$product->name}}

{{$product->description}}

{{$product->created_at}} | {{$product->type}} | {{$product->currencycodes->symbol}} {{$product->price}} | {{Lang::get('messages.sales_count')}} {{count($product->order)}} | {{Lang::get('messages.favorited_count')}} {{count($product->myfavoriteproducts)}} | {{Lang::get('messages.view_count')}}: {{count($product->statisticsdata)}}

{{Lang::get('messages.get_qrcode')}} {{Lang::get('messages.view')}} {{Lang::get('messages.edit')}} {{Lang::get('messages.delete')}} @if($product->status==1) {{Lang::get('messages.make_it_draft')}} @endif

@if($product->type=='digital' && !$product->productdigital->isEmpty())

{{Lang::get('messages.download_digital_files')}}

@endif
@endforeach {{ $activeProducts->links(); }} @else

{{Lang::get('messages.no_published_product')}}

{{Lang::get('messages.add_product')}} @endif
@if(!$draftProducts->isEmpty()) @foreach($draftProducts as $product)
@if(!$product->productimages->isEmpty()) @foreach($product->productimages as $key=>$image) @if($key==0) ... @endif @endforeach @else @endif

@if($product->name) {{$product->name}} @else {{Lang::get('messages.untitled_product')}} @endif

@if($product->description) {{$product->description}} @else

{{Lang::get('messages.no_description')}}

@endif

{{$product->created_at}} | {{$product->type}} | {{$product->currencycodes->symbol}} {{$product->price}} | {{Lang::get('messages.sales_count')}} | {{Lang::get('messages.favorited_count')}} | {{Lang::get('messages.view_count')}} : 1232131

{{Lang::get('messages.get_qrcode')}} {{Lang::get('messages.view')}} {{Lang::get('messages.edit')}} {{Lang::get('messages.delete')}} {{Lang::get('messages.delete')}} @if($product->status==0) {{Lang::get('messages.publish')}} @endif

@endforeach {{ $draftProducts->links(); }} @else

{{Lang::get('messages.no_draft_product')}}

@endif
@stop @section('footer_js') {{ HTML::script('js/bootstrap-switch.min.js') }} {{ HTML::style('css/bootstrap-switch.min.css')}} @stop