@extends('layouts.default', [ 'title' => 'Trades' ]) @section('css') @endsection @section('content')

Trades

count() > 0) style="padding-bottom:0;" @endif> @forelse ($trades as $trade)
@if ($trade->receiver->id == Auth::user()->id)
Sent by {{ $trade->sender->username }}
@else
Sent to {{ $trade->receiver->username }}
@endif
{{ $trade->created_at->diffForHumans() }}
@if ($category == 'history')
{{ ucfirst($trade->status) }}
@endif
@empty

{{ $error }}

@endforelse
{{ $trades->onEachSide(1) }} @endsection