@extends('template.layout') @section('style') @endsection @section('content')
@if (session('error')) @endif @if (session('success')) @endif
GRN Summery
Back {{-- Create --}}
{{--
@csrf
--}}
@php $total_grn = 0; $total_grn_amount = 0; $total_item = 0; @endphp @if (isset($grns)) @foreach ($grns as $grn) @php $total_grn++; $total_grn_amount += $grn->total_amount; $total_item = $grn->item_sum_qty; @endphp @endforeach @endif
# Code Date Branch Vehicle Number Total Item Amount Status Action
{{ $loop->iteration }} {{ $grn->code }} {{ $grn->date }} {{ $grn->branch->name }} {{ $grn->vehicle_number }} {{ $grn->item_sum_qty }} {{ number_format($grn->total_amount, 2) }} {{ $grn->status }} View
{{$grns->links()}}
@endsection @section('script') @endsection