@extends('layouts.app') @section('content')
{{ $title."- Invoice ".$invoice->id }} @can('update',$invoice) Edit Invoice @endcan @can('approve',$invoice) Approve Invoice @endcan @can('decline',$invoice) Decline Invoice @endcan @can('draftInvoice',$invoice) Send Back To Draft @endcan @can('print',$invoice) Print POS @endcan @can('print',$invoice) Print A4 @endcan @can('print',$invoice) Print Waybill @endcan
@if(session('success')) {!! alert_success(session('success')) !!} @elseif(session('error')) {!! alert_error(session('error')) !!} @endif

Bill To

Customer Information:
{{ $invoice->customer->firstname }} {{ $invoice->customer->lastname }}
@if(!empty($invoice->customer->address)) {{ $invoice->customer->address }}
@endif @if(!empty($invoice->customer->email)) {{ $invoice->customer->email }}
@endif {{ $invoice->customer->phone_number }}

Invoice Property






@can('pay',$invoice)

Complete Invoice

{{ csrf_field() }}
@endcan

Invoice Item(s)

@foreach($invoice->invoice_items as $item) @endforeach
# Name Quantity Cost Price Price Total Selling
{{ $loop->iteration }} {{ $item->stock->name }} {{ $item->quantity }} {{ number_format($item->stock->cost_price,2) }} {{ number_format($item->selling_price,2) }} {{ number_format(($item->total_selling_price),2) }}
Sub Total {{ number_format($invoice->sub_total,2) }}
Total {{ number_format(($invoice->sub_total -$invoice->discount_amount),2) }}
@endsection @push('js') @endpush