@extends('admin.layouts.app') @section('title', 'Purchase View') @push('styles') @endpush @section('container')
{{-- --}} Purchase List Print

Purchase View

@if (session('success'))
{{ session('success') }}
@endif @if (session('error'))
{{ session('error') }}
@endif

{{ config('app.name') }}

Phone: {{ config('app.phone') }}
Email: {{ config('app.email') }}
Address: {{ config('app.address') }}

Supplier Name: {{ $purchase->supplier->name }}
Supplier Email: {{ $purchase->supplier->email }}
Supplier Phone: {{ $purchase->supplier->phone }}
Order No : {{ $purchase->purchase_no }}
Date : {{ \Carbon\Carbon::parse($purchase->date)->format('d-m-Y') }}
Notes: {{ $purchase->notes }}
Warehouse : {{ $purchase->warehouse->name }}
{{-- --}} {{-- --}} {{-- --}} @php $t_selling_price = 0; $t_purchase_price = 0; $t_quantity = 0; @endphp @foreach ($purchase->purchaseOrderDetails as $purchaseOrderDetail) @php $t_selling_price += $purchaseOrderDetail->total_selling_amount; $t_purchase_price += $purchaseOrderDetail->total_amount; $t_quantity += $purchaseOrderDetail->quantity; @endphp @endforeach
SL Product Name Unit Price Quantity Commission Type Commission Total Commission Unit Selling Price Total Selling Price Total
{{ $loop->iteration }} {{ $purchaseOrderDetail->product->name }} {{ $purchaseOrderDetail->unit_price }} {{ $purchaseOrderDetail->quantity }} {{ \App\Helpers\Helper::number_bn_format($purchaseOrderDetail->unit_selling_price) }}/- tk {{ \App\Helpers\Helper::number_bn_format($purchaseOrderDetail->total_selling_amount) }}/- tk {{ \App\Helpers\Helper::number_bn_format($purchaseOrderDetail->total_amount) }}/- tk
Total {{ \App\Helpers\Helper::number_bn_format($t_purchase_price) }}/- tk
Total Selling Price {{\App\Helpers\Helper::number_bn_format($t_selling_price)}}/- tk
Sub Total {{\App\Helpers\Helper::number_bn_format($t_purchase_price)}}/- tk
Discount {{\App\Helpers\Helper::number_bn_format($purchase->discount)}}/- tk
Grand Total {{\App\Helpers\Helper::number_bn_format($purchase->grand_total_amount)}}/- tk
Paid {{\App\Helpers\Helper::number_bn_format($purchase->paid_amount)}}/- tk
Due {{\App\Helpers\Helper::number_bn_format($purchase->due_amount)}}/- tk
@endsection @push('scripts') @endpush