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