@extends('dashboard.admin.layouts.app')
@section('content')
<div class="container-fluid">
<div class="row">
<div class="col-12">
<div class="card">
<div class="card-header">
<h3 class="card-title">Feature Details</h3>
<div class="card-tools">
<a href="{{ route('features.index') }}" class="btn btn-secondary btn-sm">
<i class="fas fa-arrow-left"></i> Back to Features
</a>
<a href="{{ route('features.edit', $feature->id) }}" class="btn btn-warning btn-sm">
<i class="fas fa-edit"></i> Edit
</a>
</div>
</div>
<div class="card-body">
<div class="row">
<div class="col-md-6">
<table class="table table-bordered">
<tr>
<th width="30%">ID</th>
<td>{{ $feature->id }}</td>
</tr>
<tr>
<th>Name</th>
<td>{{ $feature->name }}</td>
</tr>
<tr>
<th>Category</th>
<td>{{ $feature->category->title ?? 'N/A' }}</td>
</tr>
<tr>
<th>Status</th>
<td>
@if($feature->status == 1)
<span class="badge badge-success">Active</span>
@else
<span class="badge badge-danger">Inactive</span>
@endif
</td>
</tr>
<tr>
<th>Created At</th>
<td>{{ $feature->created_at->format('Y-m-d H:i:s') }}</td>
</tr>
<tr>
<th>Updated At</th>
<td>{{ $feature->updated_at->format('Y-m-d H:i:s') }}</td>
</tr>
</table>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
@endsection