Steadfast Status
@php // Fetch API key, secret key, and base URL from environment variables $api_key = env('STEADFAST_API_KEY'); $secret_key = env('STEADFAST_SECRET_KEY'); $base_url = env('STEADFAST_BASE_URL') . '/get_balance'; // Initialize CURL $ch = curl_init(); // Set CURL options curl_setopt($ch, CURLOPT_URL, $base_url); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); curl_setopt($ch, CURLOPT_HTTPHEADER, [ 'Api-Key: ' . $api_key, 'Secret-Key: ' . $secret_key, 'Content-Type: application/json', ]); // Execute the CURL request $response = curl_exec($ch); // Check for errors if (curl_errno($ch)) { // Output error if any echo 'Error:' . curl_error($ch); } else { // Decode and inspect the response $result = json_decode($response, true); // Check if decoding was successful and output the raw response for debugging if ($result) { // Check if 'balance' exists in the response array if (isset($result['current_balance'])) { echo 'Balance: ' . $result['current_balance']; } else { echo $result['message']; } } else { echo 'Failed to retrieve or decode the response.'; } } // Close CURL curl_close($ch); @endphpContact Information
About
{{ $setting->about }}
Email address
{{ $setting->email }}
Address
@if ($setting->address != null) {{ $setting->address }} @else N/A @endif
Phone Number (One)
@if ($setting->number_one != null) {{ $setting->number_one }} @else N/A @endif
Phone Number (Two)
@if ($setting->number_two != null) {{ $setting->number_two }} @else N/A @endif
Title
@if ($setting->title != null) {{ $setting->title }} @else N/A @endif
Footer
@if ($setting->footer != null) {{ $setting->footer }} @else N/A @endif