@extends('layouts.app') @section('content')
@if($purchaseType == 'Add Product')

Total Quantity

{{ number_format($totalProdutQuantity, 2) }}

Total Cost

{{ number_format($totalProdutCost, 2) }}

Total Paid

{{--

{{ number_format($purchaseTotalSums->overall_total_paid, 2) }}

--}}
{{--

{{ number_format($purchaseTotalSums->overall_total_cost - $purchaseTotalSums->overall_total_paid, 2) }}

@if (($purchaseTotalSums->overall_total_cost - $purchaseTotalSums->overall_total_paid) > 0) @else @endif --}}
@endif @if($purchaseType == 'Add Product By Items')

Product Name

@foreach ($purchaseProducts as $product) {{--

{{ $product->product_name }}

--}} @endforeach

Supplier

{{ $suppliers->name }}

Total Quantity

{{ number_format($totalProdutQuantity, 2) }}



Total Paid

{{ number_format($product->total_paid, 2) }}

Total Cost

{{ number_format($totalProdutCost, 2) }}

Balance

{{ number_format($product->total_paid - $totalProdutCost, 2) }}

@endif
{{-- --}}

Data table

@if($purchaseType == 'Add Product')
{{-- --}} @foreach ($purchaseProducts as $purchaseProduct) @endforeach
Id # Product Name Brand Quantity Cost total CostDelete
{{ $purchaseProduct->id }} {{ $purchaseProduct->product_name }} {{ $purchaseProduct->product_brand_name }} {{ $purchaseProduct->quantity }} {{ $purchaseProduct->each_cost }} {{ $purchaseProduct->total_cost }}
@endif @if($purchaseType == 'Add Product By Items')
@foreach ($purchaseProductItem as $ProductItem) @endforeach
Id # Product Name IMU Number Quantity Cost
{{ $ProductItem->id }} {{ $ProductItem->product_name }} {{ $ProductItem->imu_number }} {{ $ProductItem->quantity }} {{ number_format($ProductItem->each_cost, 2) }}
@endif
Facebook

813 friends

Twitter

9000 followers

Google plus

780 friends

Linkedin

1090 connections

@endsection