@extends('layout.backend') @section('title', 'Congregações: Importar') @section('content') @if($user_add > 0 || $user_update > 0)

Para finalizar a importação navegue até o fim da lista e clique em Enviar

@endif @if($user_add > 0)

Membros que serão incluídos:

Os dados dos demais membros serão atualizados conforme o JW Hub
Após a importação, edite o email principal dos membros adicionados para um endereço diferente do @jwpub.org.
@else
Nenhum membro será incluído
@endif {!! Form::open(['url' => route('users.import'), 'method' => 'post']) !!} @if( $user_add > 0)
@foreach($users as $user) @if($user['id']==0) @endif {!! Form::hidden('id[]', $user['id']) !!} {!! Form::hidden('name[]', $user['name']) !!} {!! Form::hidden('jwpub[]', $user['jwpub']) !!} {!! Form::hidden('phone_primary[]', $user['phone_primary']) !!} {!! Form::hidden('phone_secondary[]', $user['phone_secondary']) !!} {!! Form::hidden('congregation_name[]', $user['congregation_name']) !!} {!! Form::hidden('congregation_id[]', $user['congregation_id']) !!} {!! Form::hidden('city_name[]', $user['city_name']) !!} {!! Form::hidden('city_id[]', $user['city_id']) !!} {!! Form::hidden('state_name[]', $user['state_name']) !!} {!! Form::hidden('state_id[]', $user['state_id']) !!} {!! Form::hidden('zipcode[]', $user['zipcode']) !!} @endforeach
Nome Caixa jwpub Telefone principal Telefone secundario Congregação Cidade UF CEP
{!! $user['name'] !!} {!! $user['jwpub'] !!} {!! $user['phone_primary'] !!} {!! $user['phone_secondary'] !!} {!! $user['congregation_name'] !!} {!! $user['city_name'] !!} {!! $user['state_name'] !!} {!! $user['zipcode'] !!}
@else @foreach($users as $user) {!! Form::hidden('id[]', $user['id']) !!} {!! Form::hidden('name[]', $user['name']) !!} {!! Form::hidden('jwpub[]', $user['jwpub']) !!} {!! Form::hidden('phone_primary[]', $user['phone_primary']) !!} {!! Form::hidden('phone_secondary[]', $user['phone_secondary']) !!} {!! Form::hidden('congregation_name[]', $user['congregation_name']) !!} {!! Form::hidden('congregation_id[]', $user['congregation_id']) !!} {!! Form::hidden('city_name[]', $user['city_name']) !!} {!! Form::hidden('city_id[]', $user['city_id']) !!} {!! Form::hidden('state_name[]', $user['state_name']) !!} {!! Form::hidden('state_id[]', $user['state_id']) !!} {!! Form::hidden('zipcode[]', $user['zipcode']) !!} @endforeach @endif
{!! Form::submit( $user_add>0 ? 'Importar membros' : 'Atualizar membros', ['class' => 'btn btn-primary mt-4']) !!}
{!! Form::close() !!} @if(count($users_exists) > 0)

Membros cadastrados no site mas não encontrados no JW Hub:

Verifique se o nome e o email @jwpub.org do membro estão corretos, e se o membro continua designado na Colih.
@foreach($users_exists as $user) @endforeach
Nome Caixa jwpub Telefone principal Telefone secundário Congregação Cidade UF CEP
{!! $user->name !!} {!! $user->email_jwpub !!} {!! $user->phone_primary !!} {!! $user->phone_secondary !!} {!! $user->congregation ? ($user->congregation->id ? $user->congregation->congregation : '-') : '-' !!} {!! $user->city ? $user->city->city : '-' !!} {!! $user->state->uf ?? '-' !!} {!! $user->zipcode !!}
@endif
@endsection