IMMREX7
@extends('schools.school_layout')
@section('content')
<div class="row clearfix">
<div class="col-sm-12">
<div class="card">
<div class="header">
<h2><strong>Upload Quotations</strong></h2>
</div>
<div class="body table-responsive">
{!! Form::open(['method' => 'GET', 'action' => ['School\Stock\QuotationController@viewUpload'], 'class' => 'form-horizontal']) !!}
<div class="row clearfix">
<div class="col-sm-2"></div>
<div class="col-sm-2 form-control-label">
<label for="classname">Financial Year</label>
</div>
<div class="col-sm-3">
<div class="form-group">
{!! Form::select('idFinancialYear',fys(),null,['class' => 'form-control show-tick ms']) !!}
</div>
</div>
<div class="col-sm-2">
{!! Form::submit('Search',['class' => 'btn btn-raised btn-primary btn-round waves-effect']) !!}
</div>
</div>
{!! Form::close() !!}
<br>
<table class="table table-bordered table-striped table-hover js-basic-example dataTable">
<thead>
<tr>
<th>S. No.</th>
<th>Request Date</th>
<th>Expected Delivery Date</th>
<th>Product Details</th>
<th>Vendor/Supplier</th>
<th>Action</th>
</tr>
</thead>
<tbody>
<?php $i = 1; ?>
@foreach($quotations as $value)
<tr>
<th scope="row">{{$i}}</th>
<td>{{$value->quotationDate}}</td>
<td>{{$value->expDeliveryDate}}</td>
<td>
@foreach($value->details as $det)
{{$det->product->productName}} - (x {{$det->quantity}}) ,<br>
@endforeach
</td>
<td>{{$value->supplier->bussinessName}}</td>
<td>
<form method="POST" action="{{url('/school/quotations-upload')}}" enctype="multipart/form-data" accept-charset="UTF-8">
<input type="hidden" name="_token" value="{{ csrf_token() }}" />
<input type="hidden" name="id" value="{{$value->idQuotation}}"/>
<input type="file" name="quotation" required/>
<button class="btn btn-raised btn-success waves-effect btn-round" type="submit">Upload Quotation</button>
</form>
@if(isset($value->received_quotation))
<a href="{{url('/storage/schools/').'/'.$value->idSchool.'/quotations/'.$value->received_quotation}}" target="_blank" class="btn btn-raised btn-warning waves-effect btn-round">View Quotation</a>
@endif
</td>
</tr>
<?php $i++; ?>
@endforeach
</tbody>
</table>
</div>
</div>
</div>
</div>
@stop
@section('script')
<script>
</script>
@stop
Copyright © 2021 -