@extends('admin.master') @section('content')
| Product Name | Amount | Quantity | Size | Total |
|---|---|---|---|---|
| {{ $product->name }} | ${{ round($product->pivot->amount, 2) }} | {{ $product->pivot->quantity }} | {{$product->pivot->sizes?implode(', ', json_decode($product->pivot->sizes )):'' }} | ${{ round($product->amount * $product->pivot->quantity, 2) }} |
| # | Date | Description | Amount |
|---|---|---|---|
| {{ $loop->iteration }} | {{ \Carbon\Carbon::parse($payment->date)->format('d/m/Y') }} | {{ $payment->description}} | {{ round($payment->amount ,2) }} |
| No Data | |||
| Total: | {{$payments->sum('amount')}} | ||