@extends('layouts.app') @section('title', __('accounting::lang.chart_of_accounts')) @section('content') @section('css') @endsection @include('accounting::layouts.nav')

@lang( 'accounting::lang.chart_of_accounts' )

@component('components.widget', ['class' => 'box-primary']) {!! Form::open(['url' => route('accounting.importChartOfAccounts'), 'method' => 'post', 'enctype' => 'multipart/form-data' ]) !!}
{!! Form::label('name', __( 'product.file_to_import' ) . ':') !!} {!! Form::file('chart_of_accounts_csv', ['accept'=> '.xls, .xlsx, .csv', 'required' => 'required']); !!}

{!! Form::close() !!}

@php $report = session('report'); @endphp @if ($report)

ملخص الاستيراد
@foreach ([ 'total' => 'عدد الصفوف الكلي', 'added' => 'المضافة', 'updated' => 'المضافة', 'duplicates' => 'المكررة', 'missing_parent' => 'أب مفقود', 'missing_subtype' => 'نوع فرعي مفقود', 'missing_primary' => 'نوع رئيسي مفقود', ] as $k => $label)
{{ $label }}
{{ $report[$k] ?? 0 }}
@endforeach
تفاصيل الرسائل
@forelse ($report['details'] as [$row, $status, $msg]) @empty @endforelse
# رقم الصف الحالة الرسالة
{{ $row }} {{ $status }} {{ $msg }}
لايوحد بيانات تم رفعها
@endif @endcomponent
@component('components.widget', ['class' => 'box-solid']) @slot('tool') @endslot
@component('components.filters', ['title' => __('report.filters')])
{!! Form::label('account_type_filter', __( 'accounting::lang.account_type' ) . ':') !!} {!! Form::select('account_type_filter', $account_types, null, ['class' => 'form-control select2', 'style' => 'width:100%', 'id' => 'account_type_filter', 'placeholder' => __('lang_v1.all')]); !!}
{!! Form::label('status_filter', __( 'sale.status' ) . ':') !!} {!! Form::select('status_filter', ['active' => __( 'accounting::lang.active' ), 'inactive' => __('lang_v1.inactive')], null, ['class' => 'form-control select2', 'style' => 'width:100%', 'id' => 'status_filter', 'placeholder' => __('lang_v1.all')]); !!}
@endcomponent
@endcomponent
@stop @section('javascript') @endsection