@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">Expense Category Detail</h5>
                </div>

                <div class="col-md-6 text-end">
                    <a href="{{ route('expense-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">ID</th>
                    <td>{{ $expense_category->id }}</td>
                </tr>

                <tr>
                    <th>Title</th>
                    <td>{{ $expense_category->title }}</td>
                </tr>

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

                <tr>
                    <th>Updated At</th>
                    <td>{{ $expense_category->updated_at->format('d M Y h:i A') }}</td>
                </tr>
            </table>
        </div>
    </div>

</div>
@endsection