@extends('layouts.app')

@section('content')
<div class="container-xxl flex-grow-1 container-p-y">
    <div class="card">

        <div class="card-header">
            <div class="row align-items-center">
                <div class="col-md-6">
                    <h5 class="mb-0">Cattle Category Details</h5>
                </div>

                <div class="col-md-6 text-end">
                    <a href="{{ route('cattle-categories.index') }}" class="btn btn-secondary">
                        Back
                    </a>
                </div>
            </div>
            <hr />
        </div>

        <div class="card-body">
            <table class="table table-bordered">
                <tr>
                    <th width="200">Title</th>
                    <td>{{ $cattleCategory->title }}</td>
                </tr>

                <tr>
                    <th>Start Date</th>
                    <td>{{ $cattleCategory->start_date ?? '-' }}</td>
                </tr>

                <tr>
                    <th>End Date</th>
                    <td>{{ $cattleCategory->end_date ?? '-' }}</td>
                </tr>

                <tr>
                    <th>Created At</th>
                    <td>{{ $cattleCategory->created_at->format('d M Y h:i A') }}</td>
                </tr>
            </table>
        </div>
    </div>
</div>
@endsection