@extends('backend.master') @section('title','Balance Adjust') @section('content') {{-- Bootstrap Icons + Font Awesome চাইলে --}}
Balance Adjust
Admin panel থেকে user balance add (credit) অথবা return (debit) করতে পারবে।
{{-- flash --}} @if(session('success'))
{{ session('success') }}
@endif @if($errors->has('amount'))
{{ $errors->first('amount') }}
@endif {{-- Search user --}} @if($query && ! $user)

কোনো user পাওয়া যায়নি: {{ $query }}

@endif @if($user) {{-- User card + form --}}
@if($user->avatar) @else {{ strtoupper(substr($user->name,0,1)) }} @endif
{{ $user->name }} (ID: {{ $user->id }})
{{ $user->country_code }} {{ $user->phone }} @if($user->email) · {{ $user->email }} @endif
{{ ucfirst($user->role) }}
Current balance {{ number_format($user->balance) }} BDT
Loan limit {{ number_format($user->loan_limit) }} BDT
@csrf {{-- Type: credit / debit --}}
@php $oldType = old('type','credit'); @endphp
{{-- Amount --}}
@error('amount')
{{ $message }}
@enderror Debit করলে amount user-এর current balance-এর বেশি হওয়া যাবে না।
{{-- Reason --}}
@endif
@endsection