@extends('organizations.layouts.default') @section('content')
@include('organizations.layouts.partials.breadcrumb')
{{-- @if ($records->count() > 0 || request()->all() != null) --}}
@forelse ($records as $tender) @empty @endforelse
S.N Tender Assigned Date Deadline Status Action
{{ nepali_number(++$loop->index) }}. {{ $tender->title ?? '-' }} {{ \Carbon\Carbon::parse($tender->evaluators->sortByDesc('created_at')->pluck('created_at')->first())->format('jS M, Y') }} {{ \Carbon\Carbon::parse($tender->evaluators->sortByDesc('created_at')->pluck('deadline')->first())->format('jS M, Y') }} {{ config('dropdown.tender_status.' . $tender->tender_status) }}
@if ($tender->evaluators->sortByDesc('created_at')->pluck('deadline')->first() > now()) @else @endif
{{ __('table.no_data') }}
{{-- @else @include('organizations.tenders.no-tender-record') @endif --}}
{{ $records->appends([ 'title' => request()->input('title'), 'published_on' => request()->input('published_on'), 'opportunity_type_id' => request()->input('opportunity_type_id'), 'tender_status' => request()->input('tender_status'), ])->links('pagination::tailwind') }}
@endsection