@extends('layouts.master') @section('meta') @stop @section('content')
@csrf
6 Langtry Walk,
London
NW8 0DU, UK
Main: 020 7328 5621
Mobile: 07950 455241
email: cs@masterdrycleaner.co.uk
@php $total = $subTotal = $discount = $taxAmount = 0; @endphp @foreach($order->items as $item) @php $total += ($item->price * $item->quantity); $subTotal = $total; @endphp @endforeach
Name Quantity Unit Price Total
Total:
£{{number_format($order->total, 2)}}
Amount Received:
£{{number_format($order->payments->sum(function($payment){ return $payment->status == 'paid' ? $payment->amount : 0; })/100, 2)}}
Amount Due:
£{{$order->amount_due > 0 ? number_format($order->amount_due, 2) : '0.00'}}
 
@foreach($order->payments as $payment) @endforeach
Payment Date Amount Method Mode Of Payment Status
{{date("d M, Y h:i a", strtotime($payment->created_at))}} £{{number_format($payment->amount/100, 2)}} {{ucfirst($payment->payment_method)}} {{"Card"}} {{ucfirst($payment->status)}}
@foreach($order->history as $history) @endforeach
Date Status Description
{{date("d M, Y h:i a", strtotime($history->created_at))}} {{ucwords($history->status)}} {{$history->description}}
@stop @section('scripts') @stop