@extends('frontend.layout_2') @section('title', 'Profile') @section('sub_layout') @php $user = auth()->user(); $loanLimit = auth()->user()->loan_limit; $activeLoansCount = \App\Models\Loan::where('user_id', $user->id)->where('status', 'running')->count(); $totalWithdrawn = \App\Models\WithdrawRequest::where('user_id', $user->id)->where('status', 'approved')->sum('amount'); @endphp
@if($user->avatar) {{ $user->name }} @else {{ strtoupper(substr($user->name, 0, 1)) }} @endif
{{ $user->name }}
{{ $user->phone }}
ব্যালেন্স
৳ {{ number_format($user->balance ?? 0, 2) }} BDT
লোন লিমিট
{{ number_format($loanLimit) }} BDT
ক্যাশ আউট
{{ number_format($user->balance ?? 0, 2) }} BDT
উত্তোলন ব্যালেন্স
{{ number_format($totalWithdrawn, 2) }} BDT
অ্যাক্টিভ লোন
{{ $activeLoansCount }} টি লোন
{{-- নিচের ৩টা বাটন --}}
Photo Password Info
@csrf
@endsection