Move disability status card to payment history
This commit is contained in:
@@ -159,12 +159,31 @@
|
||||
</dd>
|
||||
</div>
|
||||
|
||||
{{-- Disability Status Card --}}
|
||||
<div class="overflow-hidden rounded-lg px-4 py-5 sm:p-6 {{ $member->hasApprovedDisability() ? 'bg-green-50 dark:bg-green-900/30' : 'bg-gray-50 dark:bg-gray-700' }}">
|
||||
<dt class="truncate text-sm font-medium text-gray-500 dark:text-gray-400">
|
||||
</dl>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<section aria-labelledby="payment-history-heading" class="bg-white dark:bg-gray-800 shadow sm:rounded-lg">
|
||||
<div class="px-4 py-5 sm:p-6">
|
||||
<div class="flex items-center justify-between">
|
||||
<h3 id="payment-history-heading" class="text-lg font-medium leading-6 text-gray-900 dark:text-gray-100">
|
||||
{{ __('Payment History') }}
|
||||
</h3>
|
||||
@if($member->canSubmitPayment())
|
||||
<a href="{{ route('member.payments.create') }}" class="inline-flex items-center rounded-md bg-indigo-600 px-3 py-2 text-sm font-semibold text-white shadow-sm hover:bg-indigo-500 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-indigo-600">
|
||||
<svg class="-ml-0.5 mr-1.5 h-5 w-5" viewBox="0 0 20 20" fill="currentColor">
|
||||
<path d="M10.75 4.75a.75.75 0 00-1.5 0v4.5h-4.5a.75.75 0 000 1.5h4.5v4.5a.75.75 0 001.5 0v-4.5h4.5a.75.75 0 000-1.5h-4.5v-4.5z" />
|
||||
</svg>
|
||||
{{ __('Submit Payment') }}
|
||||
</a>
|
||||
@endif
|
||||
</div>
|
||||
|
||||
<div class="mt-4 overflow-hidden rounded-lg border border-gray-200 px-4 py-5 dark:border-gray-700 sm:p-6 {{ $member->hasApprovedDisability() ? 'bg-green-50 dark:bg-green-900/30' : 'bg-gray-50 dark:bg-gray-700' }}">
|
||||
<h4 class="text-sm font-medium text-gray-500 dark:text-gray-400">
|
||||
身心障礙身份
|
||||
</dt>
|
||||
<dd class="mt-1 text-gray-900 dark:text-gray-100">
|
||||
</h4>
|
||||
<div class="mt-2 text-gray-900 dark:text-gray-100">
|
||||
@if($member->hasApprovedDisability())
|
||||
<div class="flex items-center text-green-700 dark:text-green-300">
|
||||
<svg class="h-5 w-5 mr-1.5" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke="currentColor">
|
||||
@@ -192,26 +211,7 @@
|
||||
<span class="text-gray-500 dark:text-gray-400">未申請</span>
|
||||
<a href="{{ route('profile.edit') }}#disability" class="block mt-1 text-sm text-indigo-600 dark:text-indigo-400 hover:underline">上傳手冊享優惠</a>
|
||||
@endif
|
||||
</dd>
|
||||
</div>
|
||||
</dl>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<section aria-labelledby="payment-history-heading" class="bg-white dark:bg-gray-800 shadow sm:rounded-lg">
|
||||
<div class="px-4 py-5 sm:p-6">
|
||||
<div class="flex items-center justify-between">
|
||||
<h3 id="payment-history-heading" class="text-lg font-medium leading-6 text-gray-900 dark:text-gray-100">
|
||||
{{ __('Payment History') }}
|
||||
</h3>
|
||||
@if($member->canSubmitPayment())
|
||||
<a href="{{ route('member.payments.create') }}" class="inline-flex items-center rounded-md bg-indigo-600 px-3 py-2 text-sm font-semibold text-white shadow-sm hover:bg-indigo-500 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-indigo-600">
|
||||
<svg class="-ml-0.5 mr-1.5 h-5 w-5" viewBox="0 0 20 20" fill="currentColor">
|
||||
<path d="M10.75 4.75a.75.75 0 00-1.5 0v4.5h-4.5a.75.75 0 000 1.5h4.5v4.5a.75.75 0 001.5 0v-4.5h4.5a.75.75 0 000-1.5h-4.5v-4.5z" />
|
||||
</svg>
|
||||
{{ __('Submit Payment') }}
|
||||
</a>
|
||||
@endif
|
||||
</div>
|
||||
|
||||
<div class="mt-5 overflow-x-auto">
|
||||
|
||||
Reference in New Issue
Block a user