@extends('layouts.default', [
'title' => 'Trade'
])
@section('content')
{{ (Auth::user()->id == $trade->receiver->id) ? "Trade sent by {$trade->sender->username}" : "Trade sent to {$trade->receiver->username}" }}
@if ($trade->status == 'pending')
@endif
@if (Auth::user()->id == $trade->receiver->id)
@include('web.account.trades._section', [
'title' => ($trade->status != 'pending') ? 'You Gave' : 'You Are Giving',
'items' => $receiving,
'currency' => $trade->receiving_currency
])
@include('web.account.trades._section', [
'title' => ($trade->status != 'pending') ? 'You Received' : 'You Are Receiving',
'items' => $giving,
'currency' => $trade->giving_currency
])
@else
@include('web.account.trades._section', [
'title' => ($trade->status != 'pending') ? 'You Gave' : 'You Are Giving',
'items' => $giving,
'currency' => $trade->giving_currency
])
@include('web.account.trades._section', [
'title' => ($trade->status != 'pending') ? 'You Received' : 'You Are Receiving',
'items' => $receiving,
'currency' => $trade->receiving_currency
])
@endif
@if ($trade->status == 'pending')
@else
This trade has been {{ $trade->status }}.
@endif
@endsection