@extends('layouts/pos_layout') @section('title', '| Product Pricing Add') @section('content') @include('successMsg')
| Id | SL# | Supplier | Catagory | Brand | Model | Product Name | Barcode | Cost Price | Sales Price | New Sales Price |
|---|---|---|---|---|---|---|---|---|---|---|
| {{++$no}} | {!! Form::text('product_id[]',$product->id, ['class' => 'form-control input-sm', 'id' => 'product_id', 'type' => 'text','style' => 'text-align:right;']) !!} | {{$product->supplier->company_name}} | {{$product->category->name}} | {{$product->brand->name}} | {{$product->model->name}} | {{$product->name}} | {{$product->barcode}} | {{$product->cost_price}} | @php $pricing = App\Models\pos\ProductConfig\PosProductPricing::where('product_id',$product->id)->select('effected_date','sales_price')->orderBy('effected_date','DESC')->first(); if(isset($pricing->sales_price)){ $sale_price = $pricing->sales_price; }else{ $sale_price = $product->sales_price; } @endphp{{$sale_price}} | {!! Form::text('sales_price[]', $value=null, ['class' => 'form-control input-sm', 'id' => 'sales_price_'.$product->id, 'type' => 'text','style' => 'text-align:right;']) !!} |