@extends('admin.layouts.app')

@section('content')
    <div class="page-header">
        <div class="row">
            <div class="col-sm-12">
                <h3 class="page-title">Add New Country</h3>
                <ul class="breadcrumb">
                    <li class="breadcrumb-item"><a href="{{ route('countries.index') }}">Countries</a></li>
                    <li class="breadcrumb-item active">Add Country</li>
                </ul>
            </div>
        </div>
    </div>

    <div class="row">
        <div class="col-sm-12">
            <div class="card">
                <div class="card-body">
                    <form action="{{ route('countries.store') }}" method="POST" class="needs-validation" novalidate>
                        @csrf
                        <div class="form-row row">
                            <div class="mb-3 col-md-6">
                                <label for="name">Country Name</label>
                                <input type="text" class="form-control" name="name" id="name"
                                    placeholder="Country Name" required value="{{ old('name') }}">
                            </div>
                            <div class="mb-3 col-md-6">
                                <label for="currency">Currency</label>
                                <input type="text" class="form-control" name="currency" id="currency"
                                    placeholder="PKR / USD ..." required value="{{ old('currency') }}">
                            </div>
                        </div>
                        <button class="btn btn-primary" type="submit">Submit</button>
                        <a class="btn btn-secondary" href="{{ route('countries.index') }}">Cancel</a>
                    </form>
                </div>
            </div>
        </div>
    </div>
@endsection
