@extends('layouts.master-vnext') @section('page-title') Expenses payed - {{ $supplier->name }} @endsection @section('content')
@foreach($expenses as $expense) @endforeach
Date Supplier Department Product Quantity Unit price Total Payment date
@date($expense->expense_date) {{ $expense->supplier->name }} {{ $expense->target->name }} {{ $expense->product->name }} {{ $expense->quantity }} @currency($expense->unit_price) {{ $expense->currency->symbol }} @currency($expense->total_in_default_currency) {{ $currency->symbol }} @if($expense->payed_at === NULL) - not payed yet @else @date($expense->payed_at) @endif
Payed: @currency($expenses->sum('total_in_default_currency')) {{ $currency->symbol }}
@endsection