@extends('admin.layout.master') @section('content')
@lang('admin.welcome')

{{ $data['username'] }}

{{ $data['admin_users_count'] ?? 0 }}

{{ trans('project.Admin Users') }}

{{ $data['app_users_count'] ?? 0 }}

{{ trans('project.App Users') }}

{{ $data['exp_types_count'] ?? 0 }}

{{ trans('project.Expense Types') }}

{{ $data['invoices_count'] ?? 0 }}

{{ trans('project.Total Invoices') }}

{{ trans('project.App Users') }}
  • {{ trans('project.total') }} {{ $data['app_users_count'] ?? 0 }}
  • {{ trans('project.active') }} {{ $data['app_users_active'] ?? 0 }}
  • {{ trans('project.inactive') }} {{ $data['app_users_inactive'] ?? 0 }}
{{ trans('project.Expense Types') }}
  • {{ trans('project.total') }} {{ $data['exp_types_count'] ?? 0 }}
  • {{ trans('project.active') }} {{ $data['exp_types_active'] ?? 0 }}
  • {{ trans('project.inactive') }} {{ $data['exp_types_inactive'] ?? 0 }}
{{ trans('project.Total Invoices') }}
  • {{ trans('project.total') }} {{ $data['invoices_count'] ?? 0 }}
  • {{ trans('project.Simple') }} {{ $data['simple_invoces_count'] ?? 0 }}
  • {{ trans('project.Custom') }} {{ $data['custom_invoces_count'] ?? 0 }}

{{ trans('project.App Users') }}

@foreach ($data['app_users'] as $row) @endforeach
{{ trans('project.id') }} {{ trans('project.name') }} {{ trans('project.Account Type') }}
{{ $row->id }} {{ $row->name ?? $row->username }} @if ($row->account_type == 0) @lang('project.Business') @elseif($row->account_type == 1) @lang('project.Personal') @elseif($row->account_type == 2) @lang('project.Business sending') @endif

{{ trans('project.Expense Types') }}

@foreach ($data['exp_types'] as $row) @endforeach
{{ trans('project.id') }} {{ trans('project.name') }}
{{ $row->id }} @if (app()->getLocale() == 'en') {{ $row->expense_name ?? '' }} @else {{ $row->expense_name_ar ?? '' }} @endif

{{ trans('project.Invoices') }}

@foreach ($data['invoices'] as $row) @endforeach
{{ trans('project.id') }} {{ trans('project.Invoice Type') }} {{ trans('project.Amount') }}
#{{ $row->id }} @if ($row->invoice_type == 1) @lang('project.Main') @elseif($row->invoice_type == 2) @lang('project.Simple') @elseif($row->invoice_type == 3) @lang('project.Custom') @endif {{ $row->amount }}
@endsection