@if(isset($finalData) && count($finalData) > 0)
| # | {{__('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')}} | @if(Auth::check() && (in_array('Admin', Auth::user()->roles_name) || in_array('Manger', Auth::user()->roles_name))){{__('home.status_active')}} | {{ __('home.operations') }} | @endif
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| {{ ($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(Auth::check() && (in_array('Admin', Auth::user()->roles_name) || in_array('Manger', Auth::user()->roles_name)))
@if($item['account']->active == 1 ?? null)
{{ __('users.active') }}
@else
{{ app()->getLocale() == 'ar' ? 'غير نشط' : 'Inactive' }}
@endif
active == 1 ? 'checked' : '' }}>
|
@endif |