@extends('Template::layouts.master')
@section('content')
    <div class="dashboard-body">
        <div class="container">
            <div class="row justify-content-center">
                <div class="col-lg-8">
                    <div class="card custom--card">
                        <div class="card-body">
                            @if ($user->kyc_data)
                                <ul class="list-group list-group--custom">
                                    @foreach ($user->kyc_data as $val)
                                        @continue(!$val->value)
                                        <li class="list-group-item flex-columnm">
                                            <span class="text-mu">{{ __($val->name) }}</span>
                                            @if ($val->type == 'checkbox')
                                                <strong>{{ implode(',', $val->value) }}</strong>
                                            @elseif($val->type == 'file')
                                                <div class="d-flex align-items-center gap-2">
                                                    <a
                                                        href="{{ route('user.download.attachment', encrypt(getFilePath('verify') . '/' . $val->value)) }}">
                                                        <i class="fa-regular fa-file"></i>
                                                        @lang('Attachment')
                                                    </a>
                                                </div>
                                            @else
                                                <strong>{{ __($val->value) }}</strong>
                                            @endif
                                        </li>
                                    @endforeach
                                </ul>
                            @else
                                <h5 class="text-center">@lang('KYC data not found')</h5>
                            @endif
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
@endsection


@push('style')
    <style>
        .list-group-item {
            border: 1px solid rgb(0 0 0 / 6%);
        }
    </style>
@endpush
