@extends('layouts.app')

@section('title', __('clinic.edit_patient'))
@section('heading', __('clinic.edit_patient'))

@section('content')
    <form method="POST" action="{{ route('patients.update', $patient) }}">
        @csrf
        @method('PUT')
        @include('patients._form', ['patient' => $patient])
        
        <div class="flex gap" style="margin-top: 1.5rem;">
            <button type="submit" class="btn btn-primary">{{ __('clinic.save') }}</button>
            <a href="{{ route('patients.show', $patient) }}" class="btn btn-ghost">{{ __('clinic.cancel') }}</a>
        </div>
    </form>
@endsection
