@extends('layout.app')


@section('content')
    <div class="card">

        <div class="card-body">
            <a href="{{route('payment-method.create')}}" type="button" class="btn btn-primary float-right" >
                Add New Mathod
            </a>
        </div>

        <div class="card-body">



            <div class="table-responsive">
                <table id="dataTablea" class="table">
                    <thead class="bg-gray-50">
                        <tr>
                            <th> Id </th>
                            <th> Name </th>
                            <th> Key </th>
                            <th> Status </th>
                            <th> Action </th>
                        </tr>
                    </thead>
                    <tbody class="bg-white divide-y divide-gray-200">

                        @foreach ($payment_methods as $method)
                            <tr>
                                <td>{{ $method->id }}</td>
                                <td>{{ $method->name }}</td>
                                <td>{{ $method->api_key }}</td>
                                <td>{{ $method->status }}</td>
                                <td> <a href="{{ route('payment-method.edit', $method->id) }}" class="btn btn-primary">Edit</a> </td>
                            </tr>
                        @endforeach

                    </tbody>
                </table>
            </div>
        </div>
    </div>


@endsection
@push('js')

@endpush
