您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

invoice-create-step.blade.php 3.7KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889
  1. @use('App\Utilities\Currency\CurrencyConverter')
  2. <div class="space-y-1">
  3. <!-- Create Section -->
  4. <x-filament::section>
  5. <div class="flex justify-between items-start">
  6. <!-- Left section -->
  7. <div class="flex items-center space-x-3">
  8. <!-- Icon -->
  9. <x-filament::icon
  10. icon="heroicon-o-document-text"
  11. class="h-8 w-8 text-primary-600 dark:text-primary-500 flex-shrink-0 mr-4"
  12. />
  13. <!-- Text content -->
  14. <div>
  15. <h1 class="text-lg font-semibold text-gray-900 dark:text-gray-100">Create</h1>
  16. <p class="text-sm text-gray-600 dark:text-gray-400">Created: {{ $getRecord()->created_at->diffForHumans() }}</p>
  17. </div>
  18. </div>
  19. <!-- Right section -->
  20. <div class="flex flex-row items-center space-x-2">
  21. @if($getRecord()->status->value === 'draft')
  22. {{ $getAction('approveDraft') }}
  23. @endif
  24. {{ $getAction('edit') }}
  25. </div>
  26. </div>
  27. </x-filament::section>
  28. <div class="border-l-4 h-8 border-solid border-gray-300 dark:border-gray-700 ms-8"></div>
  29. <!-- Send Section -->
  30. <x-filament::section :class="$getRecord()->status->value === 'draft' ? 'opacity-50 pointer-events-none' : ''">
  31. <div class="flex justify-between items-start">
  32. <!-- Left section -->
  33. <div class="flex items-center space-x-3">
  34. <!-- Icon -->
  35. <x-filament::icon
  36. icon="heroicon-o-paper-airplane"
  37. class="h-8 w-8 text-primary-600 dark:text-primary-500 flex-shrink-0 mr-4"
  38. />
  39. <!-- Text content -->
  40. <div>
  41. <h1 class="text-lg font-semibold text-gray-900 dark:text-gray-100">Send</h1>
  42. <p class="text-sm text-gray-600 dark:text-gray-400">Last Sent: just a moment ago</p>
  43. </div>
  44. </div>
  45. <!-- Right section -->
  46. @if($getRecord()->status->value !== 'draft')
  47. <div class="flex flex-row items-center space-x-2">
  48. @if($getRecord()->status->value !== 'sent')
  49. {{ $getAction('markAsSent') }}
  50. @endif
  51. {{ $getAction('sendInvoice') }}
  52. </div>
  53. @endif
  54. </div>
  55. </x-filament::section>
  56. <div class="border-l-4 h-8 border-solid border-gray-300 dark:border-gray-700 ms-8"></div>
  57. <!-- Manage Payments Section -->
  58. <x-filament::section :class="$getRecord()->status->value === 'draft' ? 'opacity-50 pointer-events-none' : ''">
  59. <div class="flex justify-between items-start">
  60. <!-- Left section -->
  61. <div class="flex items-center space-x-3">
  62. <!-- Icon -->
  63. <x-filament::icon
  64. icon="heroicon-o-credit-card"
  65. class="h-8 w-8 text-primary-600 dark:text-primary-500 flex-shrink-0 mr-4"
  66. />
  67. <!-- Text content -->
  68. <div>
  69. <h1 class="text-lg font-semibold text-gray-900 dark:text-gray-100">Manage Payments</h1>
  70. <p class="text-sm text-gray-600 dark:text-gray-400">Amount Due: {{ CurrencyConverter::formatToMoney($getRecord()->amount_due) }}</p>
  71. </div>
  72. </div>
  73. <!-- Right section -->
  74. @if($getRecord()->status->value !== 'draft')
  75. <div class="flex flex-row items-center space-x-2">
  76. {{ $getAction('recordPayment') }}
  77. </div>
  78. @endif
  79. </div>
  80. </x-filament::section>
  81. </div>