@extends('layouts.admin') @section('title', 'Benchmarks Management') @section('content')
@include('partials.admin.alerts')

Benchmarks

Add New
@foreach($benchmarks as $benchmark) @endforeach
HS Code Description Minimum Type Minimum Value Currency Effective Period Status Actions
{{ $benchmark->hsCode->hs_code }} {{ Str::limit($benchmark->hsCode->description, 40) }} {{ $benchmark->min_type }} {{ number_format($benchmark->min_value, 2) }} {{ $benchmark->currency }} {{ $benchmark->effective_from->format('M j, Y') }} @if($benchmark->effective_to)
to {{ $benchmark->effective_to->format('M j, Y') }} @else
Ongoing @endif
@if($benchmark->is_active) Active @else Inactive @endif @include('partials.admin.tables.action-buttons', [ 'viewUrl' => route('admin.benchmarks.show', $benchmark->id), 'editUrl' => route('admin.benchmarks.edit', $benchmark->id), 'deleteUrl' => route('admin.benchmarks.destroy', $benchmark->id) ])
@if($benchmarks->hasPages())
{{ $benchmarks->links() }}
@endif
@endsection