flexisip-account-manager/flexiapi/resources/views/admin/account/import/check.blade.php
2025-06-19 10:13:53 +02:00

43 lines
1.6 KiB
PHP

@extends('layouts.main')
@section('breadcrumb')
@include('admin.account.parts.breadcrumb_accounts_index')
<li class="breadcrumb-item active" aria-current="page">{{ __('Import') }}</li>
@endsection
@section('content')
<header>
<h1><i class="ph ph-users"></i> {{ __('Import') }}</h1>
<a href="{{ route('admin.account.index') }}" class="btn secondary oppose">{{ __('Cancel') }}</a>
<a href="#" onclick="history.back()" class="btn secondary">Previous</a>
<form name="handle" method="POST" action="{{ route('admin.account.import.handle') }}" accept-charset="UTF-8"
enctype="multipart/form-data">
@csrf
<input name="file_path" type="hidden" value="{{ $filePath }}">
<input name="domain" type="hidden" value="{{ $domain }}">
<a type="submit"
class="btn @if ($errors->isNotEmpty()) disabled @endif" onclick="document.querySelector('form[name=handle]').submit()">
<i class="ph ph-download-simple"></i>
{{ __('Import') }}
</a>
</form>
</header>
<div>
<ol class="steps" style="margin: 6rem 0;">
<li>{{ __('Select a file') }}</li>
<li class="active">{{ __('Import') }}</li>
</ol>
@if ($errors->isNotEmpty())
<h3>{{ __('Errors') }}</h3>
@foreach ($errors as $title => $body)
<p><b>{{ $title }}</b> {{ $body }}</p>
@endforeach
@else
<h3>{{ $linesCount }} accounts will be imported for the {{ $domain }} domain</h3>
@endif
</div>
@endsection