94 lines
4.5 KiB
PHP
94 lines
4.5 KiB
PHP
<x-app-layout>
|
|
<x-slot name="header">
|
|
<h2 class="text-xl font-semibold leading-tight text-gray-800">
|
|
{{ __('Record payment for :name', ['name' => $member->full_name]) }}
|
|
</h2>
|
|
</x-slot>
|
|
|
|
<div class="py-12">
|
|
<div class="mx-auto max-w-3xl sm:px-6 lg:px-8">
|
|
<div class="bg-white shadow sm:rounded-lg">
|
|
<div class="px-4 py-5 sm:p-6">
|
|
<form method="POST" action="{{ route('admin.members.payments.store', $member) }}" class="space-y-6">
|
|
@csrf
|
|
|
|
<div>
|
|
<label for="paid_at" class="block text-sm font-medium text-gray-700">
|
|
{{ __('Paid at') }}
|
|
</label>
|
|
<input
|
|
type="date"
|
|
name="paid_at"
|
|
id="paid_at"
|
|
value="{{ old('paid_at', now()->toDateString()) }}"
|
|
class="mt-1 block w-full rounded-md border-gray-300 shadow-sm focus:border-indigo-500 focus:ring-indigo-500 sm:text-sm"
|
|
required
|
|
>
|
|
@error('paid_at')
|
|
<p class="mt-2 text-sm text-red-600">{{ $message }}</p>
|
|
@enderror
|
|
</div>
|
|
|
|
<div>
|
|
<label for="amount" class="block text-sm font-medium text-gray-700">
|
|
{{ __('Amount') }}
|
|
</label>
|
|
<input
|
|
type="number"
|
|
step="0.01"
|
|
name="amount"
|
|
id="amount"
|
|
value="{{ old('amount') }}"
|
|
class="mt-1 block w-full rounded-md border-gray-300 shadow-sm focus:border-indigo-500 focus:ring-indigo-500 sm:text-sm"
|
|
required
|
|
>
|
|
@error('amount')
|
|
<p class="mt-2 text-sm text-red-600">{{ $message }}</p>
|
|
@enderror
|
|
</div>
|
|
|
|
<div>
|
|
<label for="method" class="block text-sm font-medium text-gray-700">
|
|
{{ __('Method') }}
|
|
</label>
|
|
<input
|
|
type="text"
|
|
name="method"
|
|
id="method"
|
|
value="{{ old('method') }}"
|
|
class="mt-1 block w-full rounded-md border-gray-300 shadow-sm focus:border-indigo-500 sm:text-sm"
|
|
>
|
|
@error('method')
|
|
<p class="mt-2 text-sm text-red-600">{{ $message }}</p>
|
|
@enderror
|
|
</div>
|
|
|
|
<div>
|
|
<label for="reference" class="block text-sm font-medium text-gray-700">
|
|
{{ __('Reference') }}
|
|
</label>
|
|
<input
|
|
type="text"
|
|
name="reference"
|
|
id="reference"
|
|
value="{{ old('reference') }}"
|
|
class="mt-1 block w-full rounded-md border-gray-300 shadow-sm focus:border-indigo-500 sm:text-sm"
|
|
>
|
|
@error('reference')
|
|
<p class="mt-2 text-sm text-red-600">{{ $message }}</p>
|
|
@enderror
|
|
</div>
|
|
|
|
<div class="flex justify-end">
|
|
<button type="submit" class="inline-flex items-center rounded-md border border-transparent bg-indigo-600 px-4 py-2 text-sm font-medium text-white hover:bg-indigo-700 focus:outline-none focus:ring-2 focus:ring-indigo-500 focus:ring-offset-2">
|
|
{{ __('Save payment') }}
|
|
</button>
|
|
</div>
|
|
</form>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</x-app-layout>
|
|
|