@inject('request', 'Illuminate\Http\Request') @extends('layouts.app') @section('content')

@lang('global.product-categories.title')

@can('product_category_create')

 @lang('global.app_add_new')

@endcan
@lang('global.app_list')
@can('product_category_delete_multi') @endcan @if (count($product_categories) > 0) @foreach ($product_categories as $product_category) @can('product_category_delete_multi') @endcan @endforeach @else @endif
@lang('global.product-categories.fields.name') @lang('global.product-categories.fields.photo')  
{{ $product_category->name }} @if( $product_category->photo && file_exists(public_path() . '/thumb/' . $product_category->photo)) @else @endif @can('product_category_view') @lang('global.app_view') @endcan @can('product_category_edit') @lang('global.app_edit') @endcan @can('product_category_delete_multi') {!! Form::open(array( 'style' => 'display: inline-block;', 'method' => 'DELETE', 'onsubmit' => "return confirm('".trans("global.app_are_you_sure")."');", 'route' => ['admin.product_categories.destroy', $product_category->id])) !!} {!! Form::submit(trans('global.app_delete'), array('class' => 'btn btn-xs btn-danger')) !!} {!! Form::close() !!} @endcan
@lang('global.app_no_entries_in_table')
@stop @section('javascript') @endsection