{{-- Name: receiver.partials.receiverList Author: Arto Laine Created: 2016-07-07 receiver.partials.receiverList displays an receiver list in receiver create/edit pages --}}
@if (count($lists) == 0)
{{ Lang::get('receiverList.form.missingReceiverLists') }}
@endif @foreach ($lists as $list)
@if(isset($receiver)) {!! Form::checkbox($list['id'], 1, $receiver->lists()->where('receiver_list_id', $list->id)->count() > 0, ['class' => 'form-control', 'id' => $list['id']]) !!} @else {!! Form::checkbox($list['id'], 1, false, ['class' => 'form-control', 'id' => $list['id']]) !!} @endif
{!! Form::label($list['id'], $list['name'] . ' (' . $list->receivers()->count() . ')', ['class' => 'listlabel', 'style' => 'margin-top:4px;']) !!} @if($list['status'] == 0) @endif @if(!empty($list['comment'])) @endif @if(isset($receiver)) @if(isset($receiver->lists->where('id', $list->id)->first()->pivot->status) && $receiver->lists->where('id', $list->id)->first()->pivot->status == 0) @endif @endif
@endforeach