@extends('layouts.admin-master') @section('title', 'Master Rate Card') @section('style') @include('admin.style') @endsection @section('content')
@include('admin.header')

Master Rate Card

{{-- Toolbar --}}
Master Rate Cards
@forelse ($masterRateCards as $index => $rate) @empty @endforelse
#
APMC
Crop
Rate Range (₹)
Unit
Effective Date
Status
Actions
{{ ($masterRateCards->firstItem() ?? 1) + $index }} {{ $rate->apmc->apmc_name ?? '—' }}

{{ $rate->crop->crop_name ?? '—' }}

₹{{ number_format($rate->min_rate, 2) }} ₹{{ number_format($rate->max_rate, 2) }} {{ $rate->unit->short_code ?? '—' }} {{ \Carbon\Carbon::parse($rate->effective_from)->format('d M, Y') }} @if($rate->effective_to)
to {{ \Carbon\Carbon::parse($rate->effective_to)->format('d M, Y') }} @endif
@if($rate->is_active) Active @else Inactive @endif
@csrf @method('DELETE')

No rate cards found

Showing {{ $masterRateCards->firstItem() ?? 0 }} – {{ $masterRateCards->lastItem() ?? 0 }} of {{ $masterRateCards->total() }} entries

{{ $masterRateCards->links('pagination::bootstrap-4') }}
@include('admin.footer')
{{-- ═══════════════════════════════════════════════ Add New Rate Card Modal — Professional Design ═══════════════════════════════════════════════ --}} {{-- ═══════════════════════════════════════════════ View Rate Card Modal (read-only) ═══════════════════════════════════════════════ --}} {{-- ═══════════════════════════════════════════════ Update History Modal — every vendor/admin update ═══════════════════════════════════════════════ --}} @endsection @section('script') @include('admin.script') @endsection