@extends('layouts.app') @section('title') {{ __('RIS Report') }} @endsection @section('breadcrumb')
| {{ __('#') }} | {{ __('Date Issued') }} | {{ __('RIS No.') }} | {{ __('Code') }} | {{ __('Type') }} | {{ __('Particulars') }} | {{ __('Requested by') }} | {{ __('Issued by') }} | {{ __('Received by') }} | {{ __('Unit') }} | {{ __('Quantity') }} |
|---|---|---|---|---|---|---|---|---|---|---|
| {{ $key + 1 }} | {{ date('F j, Y', strtotime($product['created_at'])) }} | @if (isset($product->req_issuance->request_product->ris_number)) {{ $product->req_issuance->request_product->ris_number }} @endif | {{ $product['product']['code'] }} | {{ isset($product['product']['product_type']['name']) ? $product['product']['product_type']['name'] : ''}} | {{ $product['product']['name'] }} {{-- {{ $product['product']['product_category']['name'] }} --}} {{ $product['product']['description'] }} | {{ isset($product['req_issuance']['request_product']['requestor_user']['name']) ? $product['req_issuance']['request_product']['requestor_user']['name'] : '' }} | {{ isset($product['req_issuance']['request_product']['issuer_user']['name']) ? $product['req_issuance']['request_product']['issuer_user']['name'] : '' }} | {{ isset($product['req_issuance']['request_product']['receiver_user']['name']) ? $product['req_issuance']['request_product']['receiver_user']['name'] : '' }} | {{ isset($product['product']['product_unit']['name']) ? $product['product']['product_unit']['name'] : ''}} | {{ $product['quantity'] }} |
| # | {{ __('Code') }} | {{ __('Type') }} | {{ __('Particulars') }} | {{ __('Unit') }} | @foreach ($datesArray as $d){{ $d }} | @endforeachTotal | {{--{{ __('Cost') }} | --}}|
|---|---|---|---|---|---|---|---|---|
| RIS | QTY | @endforeach|||||||
| {{ $key + 1 }} | {{ $p_ris['code'] }} | {{ $p_ris['product_type']['name'] }} | {{ $p_ris['name'] }} {{ $p_ris['product_category']['name'] }} {{ $p_ris['description'] }} | {{ $p_ris['product_unit']['name'] }} | @foreach ($datesArray as $d)
@if (isset($p_ris->ris_products))
@foreach ($p_ris->ris_products as $data)
@if ($data->request_product->date == $d)
@if ($data->consumption->sum('quantity') != 0)
{{ $data->request_product->ris_number }}
@endif @endif @endforeach @endif |
@if (isset($p_ris->ris_products))
@foreach ($p_ris->ris_products as $data)
@if ($data->request_product->date == $d)
@if ($data->consumption->sum('quantity') != 0)
{{ $data->consumption->sum('quantity') }}
@php
$total = $total + $data->consumption->sum('quantity')
@endphp
@endif @endif @endforeach @endif |
@endforeach
{{$total}} | |