@extends('admin.admin_master') @section('admin')

Invoice

Invoice No # {{ $invoice->invoice_no }}

logo


SAVY & SONS (PTY) LTD
VICTORIA, MAHE
Phone: 4325214
Invoice Date: {{ date('d-m-Y',strtotime($invoice->date)) }}

@php $payment = App\Models\Payment::where('invoice_id',$invoice->id)->first(); @endphp

Customer Invoice

Customer Name Customer Mobile Email Address Description
{{ $payment['customer']['name'] }} {{ $payment['customer']['mobile_no'] }} {{ $payment['customer']['email'] }} {{ $payment['customer']['address'] }} {{ $invoice->description }}
@php $total_sum = '0'; @endphp @foreach($invoice['invoice_details'] as $key => $details) @php $total_sum += $details->selling_price; @endphp @endforeach
Sl Category Product Name Current Stock Quantity Unit Price Total Price
{{ $key+1 }} {{ $details['category']['name'] }} {{ $details['product']['name'] }} {{ $details['product']['quantity'] }} {{ $details->selling_qty }} {{ $details->unit_price }} {{ $details->selling_price }}
Subtotal SCR {{ $total_sum }}
Tax Rate 15% SCR {{ $payment->discount_amount }}
Paid Amount SCR {{ $payment->paid_amount }}
Due Amount SCR {{ $payment->due_amount }}
Grand Amount

SCR {{ $payment->total_amount }}

@endsection