@extends('layout.app')

@section('content')
    <form action="{{ route('tokenSource.update', $tokenSource->id) }}" method="POST">
        @method('PUT')
        @csrf
        <div class="card">
            <div class="card-body">
                <div class="form-group col-md-4">
                    <label for="name">Name *</label>
                    <input type="text" name="name" id="name" value="{{ old('name', $tokenSource->name) }}"
                        class="form-control" placeholder="Token Source Name" autocomplete="off">
                    @error('name')
                        <div class="alert alert-danger mt-1">{{ $message }}</div>
                    @enderror
                </div>
                <div class="form-group">
                    <button type="submit" class="btn btn-primary float-right">Update</button>
                </div>
            </div>
        </div>
    </form>
@endsection
