@extends('app')

@section('content')
    <div class="row">
        <h2 style="text-align: center; ">Transaction</h2>
        <hr width="75%" size="2" style="padding-bottom: 30px">
    </div>
    <div class="row" style="text-align:center">
        <h3>Product: </h3> {{ $transaction->product->sort }} {{ $transaction->product->fruit() }}
        <h3>Seller: </h3> {{ $transaction->product->user->name }}
        <h3>Buyer: </h3> {{ $transaction->user->name }}
        <h3>Amount: </h3> {{ $transaction->amount }} kg
        <h3>Price: </h3> {{ $transaction->cashmoney }} €
        <h3>Sum: </h3> {{ $transaction->amount * $transaction->cashmoney }} €
    </div>

@stop