@extends('template.layout') @section('style') @endsection @section('content')
@if ($errors->any()) @endif
{{-- success message --}}
@if (session('success')) @endif
{{-- error message --}}
@if (session('error')) @endif
View GRN
Back {{--
@csrf @method('PUT') --}}
{{--
--}} {{--
--}}
GRN Items
{{-- --}} @php $total = 0; // initialize total $total_item=0; @endphp @foreach ($grn->item as $item) {{-- --}} @php $total += $item->price_buy * $item->qty; $total_item+= $item->qty ; @endphp @endforeach
# Code Name Price Buy Price Sell Qty TotalAction
{{ $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