@extends('layouts.app')

@section('content')
    <h3 class="page-title">@lang('quickadmin.users.title')</h3>

    <div class="panel panel-default">
        <div class="panel-heading">
            @lang('quickadmin.qa_view')
        </div>

        <div class="panel-body table-responsive">
            <div class="row">
                <div class="col-md-6">
                    <table class="table table-bordered table-striped">
                        <tr>
                            <th>@lang('quickadmin.users.fields.name')</th>
                            <td field-key='name'>{{ $user->name }}</td>
                        </tr>
                        <tr>
                            <th>@lang('quickadmin.users.fields.email')</th>
                            <td field-key='email'>{{ $user->email }}</td>
                        </tr>
                        <tr>
                            <th>@lang('quickadmin.users.fields.phone')</th>
                            <td field-key='phone'>{{ $user->phone }}</td>
                        </tr>
                        <tr>
                            <th>@lang('quickadmin.users.fields.notification')</th>
                            <td field-key='notification'>{{ Form::checkbox("notification", 1, $user->notification == 1 ? true : false, ["disabled"]) }}</td>
                        </tr>
                        <tr>
                            <th>@lang('quickadmin.users.fields.city')</th>
                            <td field-key='city'>{{ $user->city }}</td>
                        </tr>
                        <tr>
                            <th>@lang('quickadmin.users.fields.role')</th>
                            <td field-key='role'>{{ $user->role->title ?? '' }}</td>
                        </tr>
                        {{--<tr>--}}
                            {{--<th>@lang('quickadmin.users.fields.photo')</th>--}}
                            {{--<td field-key='photo'>@if($user->photo)<a href="{{ asset(env('UPLOAD_PATH').'/' . $user->photo) }}" target="_blank"><img src="{{ asset(env('UPLOAD_PATH').'/thumb/' . $user->photo) }}"/></a>@endif</td>--}}
                        {{--</tr>--}}
                    </table>
                </div>
            </div><!-- Nav tabs -->
{{--<ul class="nav nav-tabs" role="tablist">--}}
    {{----}}
{{--<li role="presentation" class="active"><a href="#wishlist_user_residental_com" aria-controls="wishlist_user_residental_com" role="tab" data-toggle="tab">Уподобані ЖК користувача</a></li>--}}
{{--<li role="presentation" class=""><a href="#wishlist_user_developer" aria-controls="wishlist_user_developer" role="tab" data-toggle="tab">Уподобані Забудовники користувача</a></li>--}}
{{--<li role="presentation" class=""><a href="#filter" aria-controls="filter" role="tab" data-toggle="tab">Збережені фільтри</a></li>--}}
{{--</ul>--}}

{{--<!-- Tab panes -->--}}
{{--<div class="tab-content">--}}
    {{----}}
{{--<div role="tabpanel" class="tab-pane active" id="wishlist_user_residental_com">--}}
{{--<table class="table table-bordered table-striped {{ count($wishlist_user_residental_coms) > 0 ? 'datatable' : '' }}">--}}
    {{--<thead>--}}
        {{--<tr>--}}
            {{--<th>@lang('quickadmin.wishlist-user-residental-com.fields.user')</th>--}}
                        {{--<th>@lang('quickadmin.wishlist-user-residental-com.fields.residental-complex')</th>--}}
                        {{--@if( request('show_deleted') == 1 )--}}
                        {{--<th>&nbsp;</th>--}}
                        {{--@else--}}
                        {{--<th>&nbsp;</th>--}}
                        {{--@endif--}}
        {{--</tr>--}}
    {{--</thead>--}}

    {{--<tbody>--}}
        {{--@if (count($wishlist_user_residental_coms) > 0)--}}
            {{--@foreach ($wishlist_user_residental_coms as $wishlist_user_residental_com)--}}
                {{--<tr data-entry-id="{{ $wishlist_user_residental_com->id }}">--}}
                    {{--<td field-key='user'>{{ $wishlist_user_residental_com->user->name ?? '' }}</td>--}}
                                {{--<td field-key='residental_complex'>{{ $wishlist_user_residental_com->residental_complex->name ?? '' }}</td>--}}
                                {{--@if( request('show_deleted') == 1 )--}}
                                {{--<td>--}}
                                    {{--@can('wishlist_user_residental_com_delete')--}}
                                                                        {{--{!! Form::open(array(--}}
                                        {{--'style' => 'display: inline-block;',--}}
                                        {{--'method' => 'POST',--}}
                                        {{--'onsubmit' => "return confirm('".trans("quickadmin.qa_are_you_sure")."');",--}}
                                        {{--'route' => ['admin.wishlist_user_residental_coms.restore', $wishlist_user_residental_com->id])) !!}--}}
                                    {{--{!! Form::submit(trans('quickadmin.qa_restore'), array('class' => 'btn btn-xs btn-success')) !!}--}}
                                    {{--{!! Form::close() !!}--}}
                                {{--@endcan--}}
                                    {{--@can('wishlist_user_residental_com_delete')--}}
                                                                        {{--{!! Form::open(array(--}}
                                        {{--'style' => 'display: inline-block;',--}}
                                        {{--'method' => 'DELETE',--}}
                                        {{--'onsubmit' => "return confirm('".trans("quickadmin.qa_are_you_sure")."');",--}}
                                        {{--'route' => ['admin.wishlist_user_residental_coms.perma_del', $wishlist_user_residental_com->id])) !!}--}}
                                    {{--{!! Form::submit(trans('quickadmin.qa_permadel'), array('class' => 'btn btn-xs btn-danger')) !!}--}}
                                    {{--{!! Form::close() !!}--}}
                                {{--@endcan--}}
                                {{--</td>--}}
                                {{--@else--}}
                                {{--<td>--}}
                                    {{--@can('wishlist_user_residental_com_view')--}}
                                    {{--<a href="{{ route('admin.wishlist_user_residental_coms.show',[$wishlist_user_residental_com->id]) }}" class="btn btn-xs btn-primary">@lang('quickadmin.qa_view')</a>--}}
                                    {{--@endcan--}}
                                    {{--@can('wishlist_user_residental_com_edit')--}}
                                    {{--<a href="{{ route('admin.wishlist_user_residental_coms.edit',[$wishlist_user_residental_com->id]) }}" class="btn btn-xs btn-info">@lang('quickadmin.qa_edit')</a>--}}
                                    {{--@endcan--}}
                                    {{--@can('wishlist_user_residental_com_delete')--}}
{{--{!! Form::open(array(--}}
                                        {{--'style' => 'display: inline-block;',--}}
                                        {{--'method' => 'DELETE',--}}
                                        {{--'onsubmit' => "return confirm('".trans("quickadmin.qa_are_you_sure")."');",--}}
                                        {{--'route' => ['admin.wishlist_user_residental_coms.destroy', $wishlist_user_residental_com->id])) !!}--}}
                                    {{--{!! Form::submit(trans('quickadmin.qa_delete'), array('class' => 'btn btn-xs btn-danger')) !!}--}}
                                    {{--{!! Form::close() !!}--}}
                                    {{--@endcan--}}
                                {{--</td>--}}
                                {{--@endif--}}
                {{--</tr>--}}
            {{--@endforeach--}}
        {{--@else--}}
            {{--<tr>--}}
                {{--<td colspan="7">@lang('quickadmin.qa_no_entries_in_table')</td>--}}
            {{--</tr>--}}
        {{--@endif--}}
    {{--</tbody>--}}
{{--</table>--}}
{{--</div>--}}
{{--<div role="tabpanel" class="tab-pane " id="wishlist_user_developer">--}}
{{--<table class="table table-bordered table-striped {{ count($wishlist_user_developers) > 0 ? 'datatable' : '' }}">--}}
    {{--<thead>--}}
        {{--<tr>--}}
            {{--<th>@lang('quickadmin.wishlist-user-developer.fields.user')</th>--}}
                        {{--<th>@lang('quickadmin.wishlist-user-developer.fields.developer')</th>--}}
                        {{--@if( request('show_deleted') == 1 )--}}
                        {{--<th>&nbsp;</th>--}}
                        {{--@else--}}
                        {{--<th>&nbsp;</th>--}}
                        {{--@endif--}}
        {{--</tr>--}}
    {{--</thead>--}}

    {{--<tbody>--}}
        {{--@if (count($wishlist_user_developers) > 0)--}}
            {{--@foreach ($wishlist_user_developers as $wishlist_user_developer)--}}
                {{--<tr data-entry-id="{{ $wishlist_user_developer->id }}">--}}
                    {{--<td field-key='user'>{{ $wishlist_user_developer->user->name ?? '' }}</td>--}}
                                {{--<td field-key='developer'>{{ $wishlist_user_developer->developer->name ?? '' }}</td>--}}
                                {{--@if( request('show_deleted') == 1 )--}}
                                {{--<td>--}}
                                    {{--@can('wishlist_user_developer_delete')--}}
                                                                        {{--{!! Form::open(array(--}}
                                        {{--'style' => 'display: inline-block;',--}}
                                        {{--'method' => 'POST',--}}
                                        {{--'onsubmit' => "return confirm('".trans("quickadmin.qa_are_you_sure")."');",--}}
                                        {{--'route' => ['admin.wishlist_user_developers.restore', $wishlist_user_developer->id])) !!}--}}
                                    {{--{!! Form::submit(trans('quickadmin.qa_restore'), array('class' => 'btn btn-xs btn-success')) !!}--}}
                                    {{--{!! Form::close() !!}--}}
                                {{--@endcan--}}
                                    {{--@can('wishlist_user_developer_delete')--}}
                                                                        {{--{!! Form::open(array(--}}
                                        {{--'style' => 'display: inline-block;',--}}
                                        {{--'method' => 'DELETE',--}}
                                        {{--'onsubmit' => "return confirm('".trans("quickadmin.qa_are_you_sure")."');",--}}
                                        {{--'route' => ['admin.wishlist_user_developers.perma_del', $wishlist_user_developer->id])) !!}--}}
                                    {{--{!! Form::submit(trans('quickadmin.qa_permadel'), array('class' => 'btn btn-xs btn-danger')) !!}--}}
                                    {{--{!! Form::close() !!}--}}
                                {{--@endcan--}}
                                {{--</td>--}}
                                {{--@else--}}
                                {{--<td>--}}
                                    {{--@can('wishlist_user_developer_view')--}}
                                    {{--<a href="{{ route('admin.wishlist_user_developers.show',[$wishlist_user_developer->id]) }}" class="btn btn-xs btn-primary">@lang('quickadmin.qa_view')</a>--}}
                                    {{--@endcan--}}
                                    {{--@can('wishlist_user_developer_edit')--}}
                                    {{--<a href="{{ route('admin.wishlist_user_developers.edit',[$wishlist_user_developer->id]) }}" class="btn btn-xs btn-info">@lang('quickadmin.qa_edit')</a>--}}
                                    {{--@endcan--}}
                                    {{--@can('wishlist_user_developer_delete')--}}
{{--{!! Form::open(array(--}}
                                        {{--'style' => 'display: inline-block;',--}}
                                        {{--'method' => 'DELETE',--}}
                                        {{--'onsubmit' => "return confirm('".trans("quickadmin.qa_are_you_sure")."');",--}}
                                        {{--'route' => ['admin.wishlist_user_developers.destroy', $wishlist_user_developer->id])) !!}--}}
                                    {{--{!! Form::submit(trans('quickadmin.qa_delete'), array('class' => 'btn btn-xs btn-danger')) !!}--}}
                                    {{--{!! Form::close() !!}--}}
                                    {{--@endcan--}}
                                {{--</td>--}}
                                {{--@endif--}}
                {{--</tr>--}}
            {{--@endforeach--}}
        {{--@else--}}
            {{--<tr>--}}
                {{--<td colspan="7">@lang('quickadmin.qa_no_entries_in_table')</td>--}}
            {{--</tr>--}}
        {{--@endif--}}
    {{--</tbody>--}}
{{--</table>--}}
{{--</div>--}}
{{--<div role="tabpanel" class="tab-pane " id="filter">--}}
{{--<table class="table table-bordered table-striped {{ count($filters) > 0 ? 'datatable' : '' }}">--}}
    {{--<thead>--}}
        {{--<tr>--}}
            {{--<th>@lang('quickadmin.filter.fields.parameters')</th>--}}
                        {{--<th>@lang('quickadmin.filter.fields.user')</th>--}}
                        {{--@if( request('show_deleted') == 1 )--}}
                        {{--<th>&nbsp;</th>--}}
                        {{--@else--}}
                        {{--<th>&nbsp;</th>--}}
                        {{--@endif--}}
        {{--</tr>--}}
    {{--</thead>--}}

    {{--<tbody>--}}
        {{--@if (count($filters) > 0)--}}
            {{--@foreach ($filters as $filter)--}}
                {{--<tr data-entry-id="{{ $filter->id }}">--}}
                    {{--<td field-key='parameters'>{{ $filter->parameters }}</td>--}}
                                {{--<td field-key='user'>{{ $filter->user->name ?? '' }}</td>--}}
                                {{--@if( request('show_deleted') == 1 )--}}
                                {{--<td>--}}
                                    {{--@can('filter_delete')--}}
                                                                        {{--{!! Form::open(array(--}}
                                        {{--'style' => 'display: inline-block;',--}}
                                        {{--'method' => 'POST',--}}
                                        {{--'onsubmit' => "return confirm('".trans("quickadmin.qa_are_you_sure")."');",--}}
                                        {{--'route' => ['admin.filters.restore', $filter->id])) !!}--}}
                                    {{--{!! Form::submit(trans('quickadmin.qa_restore'), array('class' => 'btn btn-xs btn-success')) !!}--}}
                                    {{--{!! Form::close() !!}--}}
                                {{--@endcan--}}
                                    {{--@can('filter_delete')--}}
                                                                        {{--{!! Form::open(array(--}}
                                        {{--'style' => 'display: inline-block;',--}}
                                        {{--'method' => 'DELETE',--}}
                                        {{--'onsubmit' => "return confirm('".trans("quickadmin.qa_are_you_sure")."');",--}}
                                        {{--'route' => ['admin.filters.perma_del', $filter->id])) !!}--}}
                                    {{--{!! Form::submit(trans('quickadmin.qa_permadel'), array('class' => 'btn btn-xs btn-danger')) !!}--}}
                                    {{--{!! Form::close() !!}--}}
                                {{--@endcan--}}
                                {{--</td>--}}
                                {{--@else--}}
                                {{--<td>--}}
                                    {{--@can('filter_view')--}}
                                    {{--<a href="{{ route('admin.filters.show',[$filter->id]) }}" class="btn btn-xs btn-primary">@lang('quickadmin.qa_view')</a>--}}
                                    {{--@endcan--}}
                                    {{--@can('filter_edit')--}}
                                    {{--<a href="{{ route('admin.filters.edit',[$filter->id]) }}" class="btn btn-xs btn-info">@lang('quickadmin.qa_edit')</a>--}}
                                    {{--@endcan--}}
                                    {{--@can('filter_delete')--}}
{{--{!! Form::open(array(--}}
                                        {{--'style' => 'display: inline-block;',--}}
                                        {{--'method' => 'DELETE',--}}
                                        {{--'onsubmit' => "return confirm('".trans("quickadmin.qa_are_you_sure")."');",--}}
                                        {{--'route' => ['admin.filters.destroy', $filter->id])) !!}--}}
                                    {{--{!! Form::submit(trans('quickadmin.qa_delete'), array('class' => 'btn btn-xs btn-danger')) !!}--}}
                                    {{--{!! Form::close() !!}--}}
                                    {{--@endcan--}}
                                {{--</td>--}}
                                {{--@endif--}}
                {{--</tr>--}}
            {{--@endforeach--}}
        {{--@else--}}
            {{--<tr>--}}
                {{--<td colspan="7">@lang('quickadmin.qa_no_entries_in_table')</td>--}}
            {{--</tr>--}}
        {{--@endif--}}
    {{--</tbody>--}}
{{--</table>--}}
{{--</div>--}}
{{--</div>--}}

            <p>&nbsp;</p>

            <a href="{{ route('admin.users.index') }}" class="btn btn-default">@lang('quickadmin.qa_back_to_list')</a>
        </div>
    </div>
@stop


