@extends('layouts.master') @section('page.name', get_offer_title($offer)) @push('css') @endpush @section('page.body')

{{get_offer_title($offer)}}

{!! Form::open(['url' => route('home.offers.start-trade', ['token' => $offer->token]), 'class' => 'form form-horizontal']) !!}

@if($offer->type == 'sell') {!! __('HOW MUCH DO YOU WANT TO BUY?') !!} @else {!! __('HOW MUCH DO YOU WANT TO SELL?') !!} @endif

@if(Auth::id() == $offer->user->id)

{{__('This is one of your offers!')}}

@endif
{!! Form::label('amount', __('Amount in Currency:')) !!}
{!! Form::number('amount', null, ['class' => 'form-control', 'required', 'v-model.number' => 'amount', 'min' => $offer->min_amount, 'max' => $offer->max_amount]) !!}
{{strtoupper($offer->currency)}}
{!! Form::label('coin_value', __('Amount in Coin:')) !!}
{!! Form::number('coin_value', null, ['class' => 'form-control', 'required', 'v-model.number' => 'coinValue', 'novalidate', 'readonly']) !!}
{{strtoupper($offer->coin)}}
@if($offer->type == 'buy')

{{__('You have :amount on your :coin wallet!', ['amount' => Auth::user()->getCoinAvailable($offer->coin), 'coin' => get_coin($offer->coin)])}}

@endif
@if(!$offer->verifyEmail(Auth::user()))
{{__('Email Verification Required')}}
{{__('The user requires that you verify your email before you can continue with the trade.')}} {{__('If you have not received a confirmation email, you may resend in your profile settings')}}
@endif @if(!$offer->verifyPhone(Auth::user()))
{{__('Phone Verification Required')}}
{{__('The user requires that you verify your phone number before you can continue with the trade.')}} {{__('If you have not received a confirmation sms, you may resend in your profile settings')}}
@endif

{{__('INFORMATION')}}

{!! __('Your amount should be between :min_amount and :max_amount', ['min_amount' => "{$min_amount}", 'max_amount' => "{$max_amount}"]) !!}
@php $worth = (100 - $offer->profit_margin); @endphp {!! __('You will get :worth% worth of your money in return for this trade.', ['worth' => "{$worth}"]) !!}
{!! __('Rate per :coin is :rate. You can buy any fraction', ['rate' => "{$rate_formatted}",'coin' => get_coin($offer->coin)]) !!}

{{__('IMPORTANT')}}

{!! __('The buyer of this trade has a time limit of :deadline minutes to pay for the trade before the trade is cancelled by the system.', ['deadline' => "{$offer->deadline}"]) !!}
{!! __('Trade will not auto-cancel when buyer has marked trade as paid. After that buyer has to wait for seller to release coin.') !!}

{{__('Offer Terms By :user', ['user' => $offer->user->name])}}

{!! nl2br(e($offer->terms)) !!}
{!! Form::close() !!}
@endsection @push('data') @endpush