@extends('admin::layouts.master')

@section('title', 'Payment Method Details')

@section('content')
    <div class="flex justify-between items-center mb-6">
        <h1 class="text-2xl font-bold">Payment Method Details</h1>
        <div class="space-x-2">
            <a href="{{ route('admin.payment-methods.edit', $paymentMethod->id) }}" class="bg-blue-600 text-white px-4 py-2 rounded hover:bg-blue-700">Edit</a>
            <a href="{{ route('admin.payment-methods.index') }}" class="bg-gray-500 text-white px-4 py-2 rounded hover:bg-gray-600">Back</a>
        </div>
    </div>
    <div class="bg-white rounded-lg shadow p-6 max-w-lg">
        <table class="w-full">
            <tr class="border-b"><td class="py-3 font-medium text-gray-600">ID</td><td class="py-3">{{ $paymentMethod->id }}</td></tr>
            <tr class="border-b"><td class="py-3 font-medium text-gray-600">Name</td><td class="py-3">{{ $paymentMethod->name }}</td></tr>
            <tr class="border-b"><td class="py-3 font-medium text-gray-600">Slug</td><td class="py-3">{{ $paymentMethod->slug }}</td></tr>
            <tr class="border-b"><td class="py-3 font-medium text-gray-600">Description</td><td class="py-3">{{ $paymentMethod->description ?? '-' }}</td></tr>
            <tr class="border-b"><td class="py-3 font-medium text-gray-600">Icon URL</td><td class="py-3">{{ $paymentMethod->icon_url ?? '-' }}</td></tr>
            <tr class="border-b"><td class="py-3 font-medium text-gray-600">Sort Order</td><td class="py-3">{{ $paymentMethod->sort_order }}</td></tr>
            <tr class="border-b"><td class="py-3 font-medium text-gray-600">Active</td><td class="py-3">{{ $paymentMethod->is_active ? 'Yes' : 'No' }}</td></tr>
            <tr><td class="py-3 font-medium text-gray-600">Created</td><td class="py-3">{{ $paymentMethod->created_at->format('Y-m-d H:i') }}</td></tr>
        </table>
    </div>
@endsection
