@php use Illuminate\Support\Str; @endphp @extends('layouts.muladash') @section('title', $title) @section('content')

Buy Crypto

@csrf
{{-- Select Payment Source --}}

Pay From

@php $usdWallet = collect($userWalletsInUSD)->firstWhere('symbol', 'USD') ?? [ 'name' => 'USD Wallet', 'symbol' => 'USD', 'logo' => 'default-usd-logo.png', 'balance_in_usd' => 0 ]; @endphp

{{ $usdWallet['name'] }} ({{ $usdWallet['symbol'] }})

{{-- Dropdown for Wallets & Cards --}}
{{-- Amount --}}

Amount

{{-- Select Cryptocurrency --}}

Cryptocurrency

{{ Str::title(str_replace('-', ' ', $cryptos[0]->crypto_name)) }}

{{-- Wallet Address --}}

Wallet Address

{{-- Fee, Balance, Receive --}}

Fee (1.5%)

0.00 USD

Wallet Balance

{{ number_format($usdWallet['balance_in_usd'], 2) }} USD

You Will Receive

0.00 USD

{{-- Submit --}}
@endsection @section('scripts') @endsection