@extends('layouts.layout-2')

@section('content')


    <h4 class="font-weight-bold py-3 mb-4">
        Kontakte Import Status
    </h4>

    <div class="row">
        <div class="col-sm-6 col-xl-3">
            <div class="card mb-4">
                <div class="card-body">
                    <div class="d-flex align-items-center">
                        <div class="lnr lnr-users display-4 text-primary"></div>
                        <div class="ml-3">
                            <div class="text-muted small">{{ __('eingelesene Datensätze') }}</div>
                            <div class="text-large">{{ $import['count'] }}</div>
                        </div>
                    </div>
                </div>
            </div>

        </div>
        <div class="col-sm-6 col-xl-3">
            <div class="card mb-4">
                <div class="card-body">
                    <div class="d-flex align-items-center">
                        <div class="lnr lnr-users display-4 text-success"></div>
                        <div class="ml-3">
                            <div class="text-muted small">{{ __('Kontakte importiert') }}</div>
                            <div class="text-large">{{ count($import['imported']) }}</div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
        <div class="col-sm-6 col-xl-3">
            <div class="card mb-4">
                <div class="card-body">
                    <div class="d-flex align-items-center">
                        <div class="lnr lnr-users display-4 text-danger"></div>
                        <div class="ml-3">
                            <div class="text-muted small">{{ __('ohne E-Mai Adresse') }}</div>
                            <div class="text-large">{{ $import['not'] }}</div>
                        </div>
                    </div>
                </div>
            </div>

        </div>
        <div class="col-sm-6 col-xl-3">
            <div class="card mb-4">
                <div class="card-body">
                    <div class="d-flex align-items-center">
                        <div class="lnr lnr-users display-4 text-danger"></div>
                        <div class="ml-3">
                            <div class="text-muted small">{{__('Mail schon vorhanden')}}</div>
                            <div class="text-large">{{ count($import['has_imported']) }}</div>
                        </div>
                    </div>
                </div>
            </div>

        </div>
    </div>


    <div class="card mb-4">
        <div class="card-body">
            <table class="table user-view-table m-0">
                <tbody>
                <tr>
                    <td style="border-top: none">{{__('Datei')}}:</td>
                    <td style="border-top: none">{{ $file }} </td>
                </tr>
                <tr>
                    <td>{{__('Import Position start')}}:</td>
                    <td>{{$skip}}</td>
                </tr>

                <tr>
                    <td>{{__('Import limit')}}:</td>
                    <td>{{ $limit }}</td>
                </tr>
                </tbody>
            </table>

<hr>
        <h5>Vorhandene Mails</h5>

        @foreach($import['has_imported'] as $row)

            {{$row}} <br>

        @endforeach

        </div>
    </div>




@endsection
