@extends('layouts.admin') @section('title','Edit Popover Translation') @section('content')

Popover Detail Translation Keys

{!! Form::model($translations, ['method' => 'POST', 'action' => 'PopoverTranslationController@update']) !!} @if (isset($translations) && count($translations) > 0) @php $collectionHalves = array_chunk($translations->all(), ceil($translations->count() / 2)); @endphp @foreach ($collectionHalves[0] as $element)
{!! Form::hidden('id[]', $element->id) !!}
{!! Form::label('name', ucfirst($element->key)) !!} {{--

- Please enter genre name

--}} {!! Form::text('name[]', $element->value, ['class' => 'form-control']) !!} {{ $errors->first('name') }}
@endforeach @foreach ($collectionHalves[1] as $element)
{!! Form::hidden('id[]', $element->id) !!}
{!! Form::label('name', ucfirst($element->key)) !!} {{--

- Please enter genre name

--}} {!! Form::text('name[]', $element->value, ['class' => 'form-control']) !!} {{ $errors->first('name') }}
@endforeach @endif
{!! Form::close() !!}
@endsection