ultimatepos/Modules/SupplyChain/Resources/views/portal/rfq/index.blade.php

27 lines
1.3 KiB
PHP

@extends('portal::layouts.supplier')
@section('title', __('supplychain::lang.portal_rfq'))
@section('content')
<section class="content-header"><h1>@lang('supplychain::lang.portal_rfq')</h1></section>
<section class="content">
<div class="box box-primary"><div class="table-responsive">
<table class="table table-bordered table-striped">
<thead><tr><th>@lang('supplychain::lang.ref_no')</th><th>@lang('supplychain::lang.title')</th><th>@lang('portal::lang.status')</th><th>@lang('supplychain::lang.due_date')</th><th></th></tr></thead>
<tbody>
@forelse($rfqs as $rfq)
@php $myResponse = $rfq->responses->first(); @endphp
<tr>
<td>{{ $rfq->ref_no }}</td>
<td>{{ $rfq->title }}</td>
<td>{{ $myResponse->status ?? 'pending' }}</td>
<td>@format_date($rfq->due_date)</td>
<td><a href="{{ route('supplier.supplychain.rfq.show', $rfq->id) }}" class="btn btn-xs btn-info">@lang('portal::lang.view_details')</a></td>
</tr>
@empty
<tr><td colspan="5" class="text-center text-muted">@lang('portal::lang.no_records')</td></tr>
@endforelse
</tbody>
</table>
</div>{{ $rfqs->links() }}</div>
</section>
@endsection