@extends('layouts.app') @section('title') {{'Purchase Price List'}} @endsection @section('content')
Purchase Price List Back
@if (Session::has('msg'))
{{ Session::get('msg') }}
@endif
Search By Sub Category

 

{{-- --}}

@include('layouts.head')

Purchase Price List

{!! date('d-F-Y', strtotime($start_date)) !!}

@php $i = 1; $total = 0; $g_torder_quantity = 0; $g_t_quantity = 0; $g_t_total_price = 0; @endphp @foreach($department_info as $catrow) @php unset($product_quantity); $product_id = explode(',',$catrow->product_id); foreach ($product_id as $k => $v) { $product_quantity[$v] = 0; } foreach ($product_id as $k => $v) { //dd($k); $product_quantity[$v] += @$product_id[$k]; } @endphp @php foreach($product_info as $row) { $product_id = $row->id; $product_name = $row->product_name; $pack_type = $row->pack_type; $dp_price = $row->dp_price; $tp_price = $row->tp_price; if(isset($product_quantity[$product_id])) { echo ''; echo ' '; echo ' '; echo ' '; echo ' '; echo ' '; echo ''; } } @endphp @endforeach
S.L. ID Item Name Unit Purchase Price
{{ $catrow->department_name }}
'. $i++ .''. $product_id .''. $product_name .''. $pack_type .''. number_format($dp_price,2) .'
@endsection