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