From a2f02c4d56e8b324bb0e58c88f559bbe09ab40e9 Mon Sep 17 00:00:00 2001 From: DreamWillBeReal <120799088+DarkHorseCorder@users.noreply.github.com> Date: Sat, 5 Jun 2021 20:39:26 +0900 Subject: [PATCH] view frontend --- .../resources/views/user/offer/edit.blade.php | 263 ++++++++++++++++++ .../views/user/trade/details.blade.php | 225 +++++++++++++++ .../views/user/withdraw/history.blade.php | 89 ++++++ 3 files changed, 577 insertions(+) create mode 100644 project/resources/views/user/offer/edit.blade.php create mode 100644 project/resources/views/user/trade/details.blade.php create mode 100644 project/resources/views/user/withdraw/history.blade.php diff --git a/project/resources/views/user/offer/edit.blade.php b/project/resources/views/user/offer/edit.blade.php new file mode 100644 index 0000000..b6613b7 --- /dev/null +++ b/project/resources/views/user/offer/edit.blade.php @@ -0,0 +1,263 @@ +@extends('layouts.user') + +@section('title') + @lang('Edit Offer') +@endsection + +@section('content') +
+ +
+
+
+ @csrf + +
+
+
+ + +
+
+ + +
+ +
+ + +
+ +
+
@langg('What would you like to do ?')
+
+
+ type == 'sell' ? 'checked':''}}> + +
+
+ type == 'buy' ? 'checked':''}}> + +
+
+
+
+
@langg('Choose Crypto Rate you want to use')
+
+
+ price_type == 1 ? 'checked':''}}> + +
+
+ price_type == 2 ? 'checked':''}}> + +
+
+
+ +
+
@langg('Offer Trade Limits')
+
+
+ +
+ + {{$offer->fiat->code}} +
+
+
+ +
+ + {{$offer->fiat->code}} +
+
+
+
+
+
@langg('Offer rate and duration')
+
+
+ @if ($offer->price_type == 1) + +
+ + + +
+ @else + +
+ + {{$offer->fiat->code}} +
+ @endif +
+
+ + +
+
+
+
+
@langg('Offer Terms & Trade Instructions')
+
+
+ + +
+
+ + +
+
+
+
+ + +
+
+
+ +
+
+
+
+
+
+
+
+@endsection + +@push('script') + +@endpush \ No newline at end of file diff --git a/project/resources/views/user/trade/details.blade.php b/project/resources/views/user/trade/details.blade.php new file mode 100644 index 0000000..788017f --- /dev/null +++ b/project/resources/views/user/trade/details.blade.php @@ -0,0 +1,225 @@ +@extends('layouts.user') + +@section('title') + @lang('Trade Details') +@endsection + +@section('content') +
+
+ @include('user.trade.tradebar') + @include('user.trade.chat') + +
+
+
+
+
+ @langg('Offer Terms') +
+ +
+
+ {{$trade->offer->offer_terms}} +
+
+
+
+
+
+
+
+
+ @langg('Trade Instructions') +
+ +
+
+ {{$trade->offer->trade_instructions}} +
+
+
+
+
+
+ + + + + + + + + + + +@endsection + +@php + $to = Carbon\Carbon::parse($trade->created_at)->addMinutes($trade->trade_duration); + $from = \Carbon\Carbon::now(); + $diff = $from->diffInMinutes($to) - 0.5; + if($from > $to) $diff = 0; + +@endphp + +@push('script') + +@endpush \ No newline at end of file diff --git a/project/resources/views/user/withdraw/history.blade.php b/project/resources/views/user/withdraw/history.blade.php new file mode 100644 index 0000000..a44d581 --- /dev/null +++ b/project/resources/views/user/withdraw/history.blade.php @@ -0,0 +1,89 @@ +@extends('layouts.user') + +@section('title') + @langg('Withdraw History') +@endsection + +@section('content') + +
+ + +
+ + + + + + + + + + + + + + @forelse ($withdrawals as $item) + + + + + + + + + + @empty + + + + @endforelse + +
@langg('Transaction ID')@langg('Amount')@langg('Fees')@langg('Total Amount')@langg('Withdraw Address')@langg('Status')@langg('Date')
{{$item->trx}}
{{numFormat($item->amount,8)}} {{$item->currency->code}}
{{numFormat($item->charge,8)}} {{$item->currency->code}}
+ {{numFormat($item->total_amount,8)}} {{$item->currency->code}}
{{$item->wallet_address}}
+ + @if($item->status == 1) + @langg('Accepted') + @elseif($item->status == 2) + @langg('Rejected') + + @else + @langg('Pending') + + @endif +
{{dateFormat($item->created_at)}}
@langg('No data found!')
+
+ {{$withdrawals->links()}} +
+ + + +@endsection + +@push('script') + +@endpush \ No newline at end of file