@if(isset($finalData) && count($finalData) > 0)
{{-- --}} {{-- --}} {{-- الحركة مدين --}} {{-- الحركة دائن --}} @if(Auth::check() && (in_array('Admin', Auth::user()->roles_name) || in_array('Manger', Auth::user()->roles_name))) @endif @foreach($finalData as $index => $item) {{-- بيانات الحساب --}} {{-- --}} {{-- --}} {{-- الصافي (مدين أو دائن) --}} @if(Auth::check() && (in_array('Admin', Auth::user()->roles_name) || in_array('Manger', Auth::user()->roles_name))) @endif @endforeach
# {{__('home.acount_name_2')}} {{__('home.customer_number')}} {{__('home.phone')}}{{__('home.tybe')}} {{__('home.Master')}} {{__('home.Master_account')}}{{__('home.depit_oping')}} {{__('home.credit_oping')}}{{__('home.debit')}}{{__('home.credit')}}{{__('home.current balance')}}{{__('home.status_active')}} {{ __('home.operations') }}
{{ ($accounts->currentPage() - 1) * $accounts->perPage() + $index + 1 }}{{ $item['account']->name ?? ''}} {{ $item['account']->customer->id ?? 'لا يوجد رقم' }} {{ $item['account']->customer->phone ?? 'لا يوجد رقم' }}{{App::getLocale()=='ar'?$item['account']->acounts_type->name_ar:$item['account']->acounts_type->name_en}} {{ $item['account']->is_master ? __('home.Master_account') : __('home.scandary') }} {{$item['account']->parent_account_number!=NULL?App::getLocale()=='ar'?$item['account']->parent_account->name :$item['account']->parent_account->name_en:$item['account']->acounts_type->name_ar}}{{ number_format($item['sums']['o_d'], 2) }} {{ number_format($item['sums']['o_c'], 2) }}{{ number_format($item['sums']['c_d'], 2) }} {{ number_format($item['sums']['c_c'], 2) }} @if($item['net_debtor'] > 0) {{ number_format($item['net_debtor'], 2) }} ( {{__('home.debit')}}) @elseif($item['net_creditor'] > 0) {{ number_format($item['net_creditor'], 2) }} ({{__('home.credit')}}) @else 0.00 @endif @if($item['account']->active == 1 ?? null)
{{ __('users.active') }}
@else
{{ app()->getLocale() == 'ar' ? 'غير نشط' : 'Inactive' }}
@endif
active == 1 ? 'checked' : '' }}>
{{-- زر كشف الحساب - Ajax --}} {{-- زر التعديل الأصلي --}} {{-- زر الحذف الأصلي --}}
@else
لا توجد بيانات لعرضها
@endif
{{-- نستخدم appends عشان نبعت قيم البحث والتواريخ في روابط الأرقام --}} {!! $accounts->appends(request()->all())->links() !!}