@extends('layouts.app') @section('content')
Players
@include ('partials.branch_status', [$branch])
{{ __('custom.nav.branches') }}
@include ('partials.branch_info', [$fields])
{{ __('custom.attribute.installation') }}
@foreach ($installation_fields as $field)
{{ __("custom.attribute.$field") }}
{{ $branch->{$field} }}
@endforeach
{{ __('custom.attribute.comments') }}
@if (count($comments) === 0)
{{ __('custom.attribute.no_comments') }}
@else @foreach ($comments as $comment)
{{ Helper::getUsername($comment->user_id) }} @if ($comment->user_id === Auth::user()->id) @endif
{!! $comment->content !!}
@endforeach @endif
{!! Form::open(['route' => ['comments.store', $branch->id], 'class' => 'post-form', 'enctype' => 'multipart/form-data', 'accept-charset' => 'UTF-8']) !!}
{!! Form::textarea('content', null, ['class' => 'comment-content', 'required' => 'required']) !!}
{!! Form::close() !!}
@include ('partials.logs', ['list' => $logs, 'fields' => $log_fields])
@can('Inventory_Management')
{{ __('custom.nav.inventory') }}
{!! Html::openTable(['page-size' => '6']) !!} {!! Html::tableHeader($inventory_fields) !!} @foreach ($inventory_list as $entry) @foreach ($inventory_fields as $field) @if ($field === 'touch_point_id') {{ $touch_points[$entry->{$field}] }} @elseif ($field === 'type') {{ $inventory_types[$entry->{$field}] }} @else {{ $entry->{$field} }} @endif @endforeach {!! Html::editingControls('inventory', $entry->id) !!} @endforeach {!! Html::closeTable() !!}
@endcan
@endsection