@extends('layouts/contentNavbarLayout') @section('title', 'اطلاعات کاربر') @section('vendor-style') @endsection @section('vendor-script') @endsection @section('page-script') @endsection @section('content')

کاربران / {{ $user['first_name'] }}

@csrf @include('components.errors')
اخرین وضعیت مالی {{ $user['first_name'] }}
@if($user['deposit'])
پرداختی: {{ number_format($user['deposit']['inc']) }} تومان

برداشت: {{ number_format($user['deposit']['dec']) }} تومان

مانده تا این تاریخ: {{ $user['deposit']['amount'] ? number_format($user['deposit']['amount']) : '0' }}
@else

اطلاعاتی یافت نشد!

@endif

طرح اعتباری فعال {{ $user['first_name'] }}
@if(!empty($user['financial_validation']))
طرح: {{ ($user['financial_validation']['financial_validation']['title']) }} - {{ ($user['financial_validation']['financial_validation']['code']) }}

سقف بدهکاری: {{ number_format($user['financial_validation']['financial_validation']['debt_ceiling']) }} - تومان

زمان فعالسازی: {{ \Carbon\Carbon::createFromTimestamp(strtotime($user['financial_validation']['financial_validation']['created_at'])) }}

@else

اطلاعاتی یافت نشد!

@endif





سفارشات {{ $user['first_name'] }}
@foreach($user['invoices'] as $invoice) @endforeach
# تعداد قیمت ایجاد شده در عملیات
{{ $invoice['id'] }} @switch($invoice['status']) @case(0) در انتظار تایید @break @case(1) در انتظار واریزی @break @case(2) در انتظار تایید واریزی @break @case(3) در انتظار ارسال @break @case(4) ارسال شده @break @case(5) رد شده @break @endswitch {{ number_format($invoice['total_price']) }} {{ date('Y-m-d H:i:s', strtotime($invoice['created_at'])) }} {{ date('Y-m-d H:i:s', strtotime($invoice['updated_at'])) }}





تراکنش ها {{ $user['first_name'] }}
@foreach($user['wallets'] as $wallet) @endforeach
# مانده قبلی بدهکاری مبلغ پرداختی مانده توضیح فاکتور مربوطه ایجاد شده در عملیات
{{ $wallet['id'] }} {{ number_format($wallet['previous_debt']) }} {{ number_format($wallet['dec']) }} {{ number_format($wallet['inc']) }} {{ number_format($wallet['amount']) }} {{ $wallet['desc'] }} #{{ $wallet['invoice_id'] }} {{ date('Y-m-d H:i:s', strtotime($wallet['created_at'])) }}
@endsection