選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。

73 行
2.6KB

  1. @extends('layout')
  2. @includes('includes/small-feature')
  3. <div class="container mx-auto px-8 py-8 md:py-16">
  4. <h1 class="text-3xl font-bold">
  5. Adjust stock &mdash; {{ $item->name }}
  6. </h1>
  7. <p class="text-gray-500 my-4">
  8. Use this after a physical count to correct the recorded quantity at a location. Enter the new total, not a delta.
  9. </p>
  10. <ul class="my-4 space-y-1 text-gray-500">
  11. @foreach($locations as $location)
  12. <li>{{ $location->code }} &mdash; {{ $location->name }}: {{ $quantitiesByLocation[$location->id] ?? 0 }} currently recorded</li>
  13. @endforeach
  14. </ul>
  15. <form
  16. method="post"
  17. action="{{ $adjustAction }}"
  18. class="flex flex-col w-full space-y-4 max-w-xl my-4"
  19. >
  20. @if(session()->has('adjust_errors'))
  21. <ol class="list-disc text-red-500">
  22. @foreach(session('adjust_errors') as $field => $errors)
  23. @foreach($errors as $error)
  24. <li>{{ $error }}</li>
  25. @endforeach
  26. @endforeach
  27. </ol>
  28. @endif
  29. <input type="hidden" name="csrf" value="{{ $csrf }}" />
  30. <label for="location_id" class="flex flex-col w-full">
  31. <span class="flex">Location:</span>
  32. <select
  33. id="location_id"
  34. name="location_id"
  35. class="bg-gray-50 rounded-lg p-2 text-gray-900"
  36. >
  37. @foreach($locations as $location)
  38. <option value="{{ $location->id }}">{{ $location->code }} &mdash; {{ $location->name }}</option>
  39. @endforeach
  40. </select>
  41. </label>
  42. <label for="quantity" class="flex flex-col w-full">
  43. <span class="flex">New quantity:</span>
  44. <input
  45. id="quantity"
  46. name="quantity"
  47. type="number"
  48. min="0"
  49. class="bg-gray-50 rounded-lg p-2 text-gray-900"
  50. placeholder="0"
  51. />
  52. </label>
  53. <label for="notes" class="flex flex-col w-full">
  54. <span class="flex">Notes (optional):</span>
  55. <input
  56. id="notes"
  57. name="notes"
  58. type="text"
  59. class="bg-gray-50 rounded-lg p-2 text-gray-900"
  60. placeholder="Physical count on 2026-07-21"
  61. />
  62. </label>
  63. <button
  64. type="submit"
  65. class="bg-indigo-500 rounded-lg p-2 text-white"
  66. >
  67. Save adjustment
  68. </button>
  69. </form>
  70. </div>

Powered by TurnKey Linux.