@extends('layouts.portal') @section('title', __('Quick setup from accounts')) @push('styles') @include('accounting.journal._styles') @endpush @section('content')
@include('partials.portal-header')

{{ __('Quick setup from accounts') }}

{{ __($catalog['bulk_intro']) }}

@if ($errors->any())
    @foreach ($errors->all() as $error)
  • {{ $error }}
  • @endforeach
@endif
@csrf
@foreach($groups as $group)
@forelse($accounts as $account) @php($row = old('accounts.'.$account->id, [])) @php($checked = filter_var($row['selected'] ?? false, FILTER_VALIDATE_BOOLEAN)) @empty @endforelse
{{ __('Account') }} {{ __('Concept name') }} {{ __('Group') }} {{ __('Existing concepts') }}
{{ $account->code }} — {{ $account->name }} @if(($conceptsByAccount[$account->id] ?? 0) > 0) {{ trans_choice(':count concept|:count concepts', $conceptsByAccount[$account->id], ['count' => $conceptsByAccount[$account->id]]) }} @endif
{{ __('No eligible accounts.') }}
@endsection