@extends('admin.layouts.master') @section('contents')
@include('admin.offers.search_form')
@forelse($offers as $offer) @empty @endforelse
{{ __('ID') }} {{ __('Project') }} {{ __('Freelancer') }} {{ __('Amount') }} {{ __('Status') }} {{ __('Created At') }} {{ __('Actions') }}
{{ $offer->id }} @if($offer->project) {{ Str::limit($offer->project->title, 40) }} @else {{ __('N/A') }} @endif {{ $offer->user->name ?? __('N/A') }} ${{ number_format($offer->total ?? 0, 2) }} @switch($offer->status) @case(\App\Models\Offer::STATUS_PENDING) {{ __('Pending') }} @break @case(\App\Models\Offer::STATUS_RUNNING) {{ __('Running') }} @break @case(\App\Models\Offer::STATUS_COMPLETED) {{ __('Completed') }} @break @case(\App\Models\Offer::STATUS_REJECTED) {{ __('Rejected') }} @break @case(\App\Models\Offer::STATUS_CANCELLED) {{ __('Cancelled') }} @break @case(\App\Models\Offer::STATUS_CLOSED) {{ __('Closed') }} @break @default {{ $offer->status }} @endswitch {{ $offer->created_at?->format('M j, Y') }} @if($offer->project) @endif
{{ __('No offers found') }}
@include('admin.components.advanced-pagination', ['paginator' => $offers])
@endsection