ultimatepos/Modules/AssetExchange/Resources/views/portal/inquiries/index.blade.php

55 lines
2.4 KiB
PHP

@extends('portal::layouts.customer')
@section('title', __('assetexchange::lang.portal_supplier_inquiries'))
@section('content')
<section class="portal-page-header">
<h1>@lang('assetexchange::lang.portal_supplier_inquiries')</h1>
<p class="text-muted">@lang('assetexchange::lang.portal_supplier_inquiries_hint')</p>
</section>
<section class="content">
<div class="box box-primary">
<div class="box-body table-responsive">
<table class="table table-bordered table-striped">
<thead>
<tr>
<th>@lang('assetexchange::lang.inquiry_code')</th>
<th>@lang('assetexchange::lang.title')</th>
<th>@lang('assetexchange::lang.listing')</th>
<th>@lang('assetexchange::lang.status')</th>
<th>@lang('assetexchange::lang.quoted_price')</th>
<th></th>
</tr>
</thead>
<tbody>
@forelse($inquiries as $inquiry)
@php($recipient = $inquiry->recipients->first())
<tr>
<td>{{ $inquiry->inquiry_code }}</td>
<td>{{ $inquiry->title }}</td>
<td>{{ $inquiry->listing?->title ?? '—' }}</td>
<td>
{{ $aexUtil->statusLabel($recipient?->status ?: $inquiry->status) }}
@if($recipient && !$recipient->viewed_at)
<span class="label label-warning">@lang('assetexchange::lang.unread')</span>
@endif
</td>
<td>{{ $recipient?->quoted_price ? $aexUtil->formatMoney($recipient->quoted_price) : '—' }}</td>
<td>
<a href="{{ route('supplier.asset_exchange.inquiries.show', $inquiry->id) }}" class="btn btn-xs btn-primary">
@lang('assetexchange::lang.view')
</a>
</td>
</tr>
@empty
<tr><td colspan="6" class="text-center text-muted">@lang('assetexchange::lang.no_records')</td></tr>
@endforelse
</tbody>
</table>
{{ $inquiries->links() }}
</div>
</div>
</section>
@endsection