{{-- * @description Char-Bazaar - Venda de personagens * @author Rickson Kauê * @date Data de criação 05/12/2023 * @version 1.0 * @copyright (c) Ravenor * @email ricksonkaue04@gmail.com --}} @extends('template.layout') @section('title', 'Current Auctions') @section('submenuItem', 'currentAuctions') @section('content')
Current Auctions
@foreach ($charactersData as $character) @php if($actionCode == 4){ $tax = 75; $characterLevel = $character->level; if ($characterLevel >= 126) { $tax = 250; } elseif ($characterLevel >= 101) { $tax = 200; } elseif ($characterLevel >= 76) { $tax = 150; } elseif ($characterLevel >= 51) { $tax = 125; } elseif ($characterLevel >= 26) { $tax = 100; } $_POST["maxBid"] = $price + $tax; } @endphp @endforeach
@if(in_array($character->id, $playerIds)) Your character | @endif Level: {{ $character->level }} | Vocation: {{ $vocations[$character->vocation] }} | Sex: {{ $character->sex == 0 ? "Female" : "Male" }}
 no_necklace
 no_helmet
 no_backpack
 no_handright
 no_armor
 no_handleft
 no_ring
 no_legs
 no_ammo
Auction Start:

{{ date('M d Y, H:s:i', strtotime($character->date_start)) }}
Auction End:

{{ date('M d Y, H:s:i', strtotime($character->date_end)) }}
Current Bid:

{{ $character->price }} Ravenor Coins

Confirm Bid For Auction
@if($actionCode == 4) @else @endif

Do you really want to bid the following amount for the character listed below:
Tax: {{ $tax }} Ravenor Coins.
Your Bid: {{ $_POST["maxBid"] }} Ravenor Coins.
Your Ravenor Coins: {{ $shopCoins }}.
{{--
If you confirm this bid, 50 Ravenor Coins will be subtracted from your account's balance. This value does not return if a higher bid is given. --}} @if($actionCode != 4)

If someone is submitting a higher bid, the only the value of {{ $_POST["maxBid"] }} will be returned to your account. @endif {{--

Your balance after this operation will be {{ $shopCoins - $_POST["maxBid"] - 50 }}. --}}

Your balance after this operation will be {{ $shopCoins - $_POST["maxBid"] }}.

@csrf
@csrf
@if(in_array($character->id, $playerIds)) @else @endif @endsection