IMMREX7

aku nok ndi : /home/spdtg/www/schoolmis/resources/views/schools/stock/
File Up :
aku nok ndi : /home/spdtg/www/schoolmis/resources/views/schools/stock/purchaseorder_details.blade.php

@extends('schools.school_layout')
@section('content')
<div class="row clearfix">
    <div class="col-sm-12">
        <div class="card">
            <div class="header">
                <h2><strong>Goods Received Details</strong></h2>
            </div>
            <div class="body table-responsive">
                {!! Form::open(['url' => 'school/prodreceived', 'class' => 'form-horizontal','id'=>'form','files'=>true]) !!}
                <input type="hidden" name='idPurchaseOrder' value="{{$po->idPurchaseOrder}}">
                <p style="color:red;">Note : Enter serial no separated by (,) eg: 219283736,16253538</p>
                <table class="table table-bordered dataTable">
                    <thead>
                        <tr>
                            <th>S. No.</th>
                            <th>Item Details</th>
                            <th>Quantity</th>
                            <th>Already<br>Received</th>
                            <th>Received</th>
                        </tr>
                    </thead>
                    <tbody>
                        <?php $i = 1; ?>
                        @foreach($po->details as $var)
                        <tr>
                            <th scope="row">{{$i}}</th>
                            <td>
                                {{$var->product->productName}}
                                <input type="hidden" name="products[{{$i}}][idProduct]" value="{{$var->idProduct}}">
                            </td>
                            <td>{{$var->quantity}}</td>
                            @php $rproducts = \App\ProductReceived::join('product_received_details','product_received.idProductReceived','=','product_received_details.idProductReceived')
                            ->join('products','product_received_details.idProduct','=','products.idProduct')
                            ->where('product_received_details.idProduct',$var->idProduct)
                            ->where('idPurchaseOrder',$po->idPurchaseOrder)->first(); @endphp
                            @if($rproducts != null)
                            <td>{{$rproducts->quantity}}</td>
                            @else
                            <td>0</td>
                            @endif
                            <td>
                                {!! Form::text('products['.$i.'][quantity]',null,['class' => 'form-control','required'=>'required']) !!}<br>
                                {!! Form::text('products['.$i.'][serialNo]',null,['placeholder'=>'Enter serial no','class' => 'form-control','required'=>'required']) !!}
                            </td>
                        </tr>
                        <?php $i++; ?>
                        @endforeach
                    </tbody>
                </table>
                {!! Form::submit('SAVE',['class' => 'btn btn-raised btn-primary btn-round waves-effect','id'=>'submit-btn']) !!}
                {!! Form::close() !!} 
            </div>
        </div>
    </div>
</div>
@stop

Copyright © 2021 - 2025 IMMREX7