@extends('template.layout') @section('style') @endsection @section('content')
@if ($errors->any()) @endif
{{-- success message --}}
@if (session('success')) @endif
{{-- error message --}}
@if (session('error')) @endif
{{-- warninig message --}}
@if (session('warning')) @endif
Edit GRN
Back
@csrf @method('PUT')
@csrf @method('DELETE')
GRN Item Adding Form
@csrf
@php $total = 0; // initialize total @endphp @foreach ($grn->item as $item) @php $total += $item->price_buy * $item->qty; @endphp @endforeach
# Code Name Price Buy Price Sell Qty Total Action
{{ $loop->iteration }} {{ $item->code }} {{ $item->item->name }} {{ number_format($item->price_buy, 2) }} {{ number_format($item->price_sell, 2) }} {{ $item->qty }} {{ number_format($item->price_buy * $item->qty, 2) }}
@csrf @method('DELETE')
@csrf
@endsection @section('script') @endsection