@extends('layouts.' . ($ajax ? 'ajax' : 'app'), [ 'title' => trans('entities/inventories.show.title', ['name' => $entity->name]), 'description' => '', 'breadcrumbs' => [ ['url' => $entity->url('index'), 'label' => trans($entity->pluralType() . '.index.title')], ['url' => $entity->url('show'), 'label' => $entity->name], __('crud.tabs.inventory') ] ]) @inject('campaign', 'App\Services\CampaignService') @section('content') @include('partials.errors')
@include($entity->pluralType() . '._menu', ['active' => 'inventory', 'model' => $entity->child, 'name' => $entity->pluralType()])

{{ __('entities/inventories.show.helper') }}

@if (Auth::check()) @can('update', $entity->child) @endcan @endif @foreach ($inventory as $item) @if (Auth::check()) @can('update', $entity->child) @endcan @endif @endforeach
{{ __('crud.fields.item') }} {{ __('entities/inventories.fields.position') }} {{ __('entities/inventories.fields.amount') }} {{ __('entities/inventories.fields.description') }}{{ __('crud.fields.visibility') }} {{ __('entities/inventories.actions.add') }}
{{ $item->item->name }} {{ $item->position }} {{ $item->amount }} {{ $item->description }} @include('cruds.partials.visibility', ['model' => $item]) {!! Form::open(['method' => 'DELETE', 'route' => ['entities.inventories.destroy', 'entity' => $entity, 'inventory' => $item], 'style' => 'display:inline', 'id' => 'delete-form-' . $item->id]) !!} {!! Form::close() !!}
{{ $inventory->links() }}
@endsection