@extends('layouts.app') @section('content') {{ Form::open(['method' => 'get','class' => '']) }}
{{ Form::text('q', request('q'), ['class' => 'form-control', 'placeholder' => trans('app.search_your_family_placeholder')]) }} {{ Form::submit(trans('app.search'), ['class' => 'btn btn-default']) }} {{ link_to_route('users.search', 'Reset', [], ['class' => 'btn btn-default']) }}
{{ Form::close() }} @if (request('q'))
{{ $users->appends(Request::except('page'))->render() }} @foreach ($users->chunk(4) as $chunkedUser)
@foreach ($chunkedUser as $user)
{{ userPhoto($user, ['style' => 'width:100%;max-width:300px']) }} @if ($user->age)
{{ $user->age }} {{ trans_choice('user.age_years', $user->age) }}
@endif

{{ $user->profileLink() }} ({{ $user->gender }})

{{ trans('user.nickname') }} : {{ $user->nickname }}

{{ trans('user.father') }} : {{ $user->father_id ? $user->father->name : '' }}
{{ trans('user.mother') }} : {{ $user->mother_id ? $user->mother->name : '' }}
@endforeach
@endforeach {{ $users->appends(Request::except('page'))->render() }} @endif @endsection