@extends('layouts.master') @section('page_title', 'Purchase Details') @section('title', 'Purchase Details') @section('main_item', 'Purchases') @section('sub_item', 'Add Purchases') @section('content')

Edit Purchases

business_location != '1') style="display: none" @endif>
Add
@csrf
@foreach ($grn_items as $count => $grn_item) @php $attribute_value_id = App\AttributeValue::find($grn_item->attribute_value_id); $second_attribute_value_id = App\AttributeValue::find($grn_item->second_attribute_value_id); @endphp @endforeach
Product Name Purchase Quantity Purchase Price Selling Price Line Total Action
{{ $grn_item->product->product_name }} | @if (!empty($attribute_value_id->value)) {{ $attribute_value_id->value }} | @else @endif @if (!empty($second_attribute_value_id->value)) {{ $second_attribute_value_id->value }} @else @endif {{ number_format($grn_item->grn_line_total, 2) }}

Total Cost

grn_discount)) value="{{ $grn->grn_discount }}" @else value="0" @endif>
{{-- Model Sart here --}} {{-- Model Ends Here --}} @endsection @section('scripts') @endsection