@extends('layouts.admin') @section('content')
@if(\Illuminate\Support\Facades\Auth::user()->isAdmin()) {{ Breadcrumbs::render('request-item', $request) }} @else {{ Breadcrumbs::render('request-item-basic') }} @endif| {{ \App\Models\RequestItems::COLUMN_NAME_ITEM_NUMBER_CODE }} | {{ \App\Models\RequestItems::COLUMN_NAME_IP_NUMBER }} | {{ \App\Models\RequestItems::COLUMN_NAME_NEXT_RENEWAL_DATE }} | {{ \App\Models\RequestItems::COLUMN_NAME_COUNTRY }} | {{ \App\Models\RequestItems::COLUMN_NAME_STATUS }} | {{ \App\Models\RequestItems::COLUMN_NAME_CASE_TYPE }} | {{ \App\Models\RequestItems::COLUMN_NAME_ENTITY_SIZE }} | {{ \App\Models\RequestItems::COLUMN_NAME_NEXT_ANNUITY_YEAR }} | {{ \App\Models\RequestItems::COLUMN_NAME_NUMBER_OF_CLAIMS }} | {{ \App\Models\RequestItems::COLUMN_NAME_INVOICE_CURRENCY }} | {{ \App\Models\RequestItems::COLUMN_NAME_ESTIMATED_OR_INVOICED_TOTAL }} |
|---|---|---|---|---|---|---|---|---|---|---|
| {{ $item->item_number_code }} | {{ $item->ip_number }} | {{ $item->next_renewal_date }} | {{ $item->country }} | {{ $item->statusViewName() }} | {{ $item->case_type }} | {{ $item->entity_size }} | {{ $item->next_annuity_year }} | {{ $item->number_of_claims }} | {{ $item->invoice_currency }} | {{ is_numeric($item->estimated_or_invoiced_total) ? number_format($item->estimated_or_invoiced_total, 2, '.', '') : $item->estimated_or_invoiced_total }} |
| {{ \App\Models\RequestItems::COLUMN_NAME_ITEM_NUMBER_CODE }} | {{ \App\Models\RequestItems::COLUMN_NAME_ESTIMATED_OR_INVOICED_TOTAL }} | @foreach($suppliers as $supplier){{ $supplier->profile->business_name }} | @endforeach
|---|---|---|
| {{ $item->item_number_code }} | {{ is_numeric($item->estimated_or_invoiced_total) ? number_format($item->estimated_or_invoiced_total, 2, '.', '') : $item->estimated_or_invoiced_total }} | @foreach($suppliers as $supplier){{ \App\Models\ResponseItems::getTotal($item->id, $supplier->id)}} | @endforeach
| Total | {{ \App\Models\RequestItems::sumEstimated($items) }} | @foreach($suppliers as $supplier){{ \App\Models\ResponseItems::getSumOfTotal($item->request->id, $supplier->id) }} | @endforeach
| Supplier | Message | Files | View Response | |
|---|---|---|---|---|
| {{ isset($supplier->profile->business_name) ? $supplier->profile->business_name : '' }} | @if($supplier->isDeclined($request->id)) {{ ucfirst(\App\Models\SuppliersRequests::STATUS_DECLINED) }} @else @foreach($supplier->response->where('request_id', $item->request_id) as $response) {!!nl2br(str_replace(" ", " ", $response->note))!!} @endforeach @endif |
|
@if(!$supplier->isDeclined($request->id)) @endif | {{----}} {{--@if(\App\Models\AttachmentRequest::exist($supplier->id, $item->request_id) || $supplier->hasNote($item->request_id))--}} {{----}} {{----}} {{----}} {{--@endif--}} {{-- | --}}