@extends('layouts.app', ['title' => 'Categorias de Produto']) @section('css') @endsection @section('content')

Categorias de Produto

Gerencie as categorias e subcategorias

@can('categoria_produtos_create') Nova Categoria @endcan
{!!Form::open()->fill(request()->all())->get()!!}
{!!Form::text('nome', 'Pesquisar por nome')->attrs(['class' => 'form-control'])!!}
{!!Form::close()!!}
@can('categoria_produtos_delete') @endcan @if(__isActivePlan(Auth::user()->empresa, 'Cardapio')) @endif @if(__isActivePlan(Auth::user()->empresa, 'Delivery')) @endif @if(__isActivePlan(Auth::user()->empresa, 'Ecommerce')) @endif @if(__isActivePlan(Auth::user()->empresa, 'Reservas')) @endif @forelse($data as $item) @can('categoria_produtos_delete') @endcan @if(__isActivePlan(Auth::user()->empresa, 'Cardapio')) @endif @if(__isActivePlan(Auth::user()->empresa, 'Delivery')) @endif @if(__isActivePlan(Auth::user()->empresa, 'Ecommerce')) @endif @if(__isActivePlan(Auth::user()->empresa, 'Reservas')) @endif @if(sizeof($item->subCategorias) > 0) @foreach($item->subCategorias as $sub) @can('categoria_produtos_delete') @endcan @if(__isActivePlan(Auth::user()->empresa, 'Cardapio')) @endif @if(__isActivePlan(Auth::user()->empresa, 'Delivery')) @endif @if(__isActivePlan(Auth::user()->empresa, 'Ecommerce')) @endif @if(__isActivePlan(Auth::user()->empresa, 'Reservas')) @endif @endforeach @endif @empty @endforelse
Nome StatusCardápioDelivery Tipo pizzaEcommerceReservaAções
{{ $item->nome }} @if($item->status) Ativo @else Inativo @endif @if($item->cardapio) @else @endif @if($item->delivery) @else @endif @if($item->tipo_pizza) @else @endif @if($item->ecommerce) @else @endif @if($item->reserva) @else @endif
@can('categoria_produtos_edit') @endcan @can('categoria_produtos_delete')
@method('delete') @csrf
@endcan
{{ $sub->nome }} @if($item->status) Ativo @else Inativo @endif
@can('categoria_produtos_edit') @endcan @can('categoria_produtos_delete')
@method('delete') @csrf
@endcan

Nenhuma categoria encontrada

@can('categoria_produtos_delete')
@method('delete') @csrf
@endcan
{!! $data->appends(request()->all())->links() !!}
@endsection @section('js') @endsection