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

FARM TO APMC

Crop Management
@forelse ($crops as $index => $crop) @empty @endforelse
Sr. No.
Crop Name
Category
Unit
Last Updated
Actions
{{ ($crops->firstItem() ?? 1) + $index }} @if ($crop->image_url) @else @endif

{{ $crop->crop_name }}

{{ $crop->category->category_name ?? 'Uncategorized' }}

{{ $crop->defaultUnit->unit_name ?? 'N/A' }}

{{ $crop->created_at->format('d M Y') }}

@csrf @method('DELETE')
No crops found

Showing {{ $crops->firstItem() ?? 0 }} to {{ $crops->lastItem() ?? 0 }} of {{ $crops->total() }} entries

@include('admin.footer') @section('script') @include('admin.script') @endsection
@endsection