25개 이상의 토픽을 선택하실 수 없습니다. Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

61 lines
2.0KB

  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. Receive stock &mdash; {{ $item->name }}
  6. </h1>
  7. <form
  8. method="post"
  9. action="{{ $receiveAction }}"
  10. class="flex flex-col w-full space-y-4 max-w-xl my-4"
  11. >
  12. @if(session()->has('receive_errors'))
  13. <ol class="list-disc text-red-500">
  14. @foreach(session('receive_errors') as $field => $errors)
  15. @foreach($errors as $error)
  16. <li>{{ $error }}</li>
  17. @endforeach
  18. @endforeach
  19. </ol>
  20. @endif
  21. <input type="hidden" name="csrf" value="{{ $csrf }}" />
  22. <label for="location_id" class="flex flex-col w-full">
  23. <span class="flex">Location:</span>
  24. <select
  25. id="location_id"
  26. name="location_id"
  27. class="bg-gray-50 rounded-lg p-2 text-gray-900"
  28. >
  29. @foreach($locations as $location)
  30. <option value="{{ $location->id }}">{{ $location->code }} &mdash; {{ $location->name }}</option>
  31. @endforeach
  32. </select>
  33. </label>
  34. <label for="quantity" class="flex flex-col w-full">
  35. <span class="flex">Quantity:</span>
  36. <input
  37. id="quantity"
  38. name="quantity"
  39. type="number"
  40. class="bg-gray-50 rounded-lg p-2 text-gray-900"
  41. placeholder="1"
  42. />
  43. </label>
  44. <label for="notes" class="flex flex-col w-full">
  45. <span class="flex">Notes (optional):</span>
  46. <input
  47. id="notes"
  48. name="notes"
  49. type="text"
  50. class="bg-gray-50 rounded-lg p-2 text-gray-900"
  51. />
  52. </label>
  53. <button
  54. type="submit"
  55. class="bg-indigo-500 rounded-lg p-2 text-white"
  56. >
  57. Receive
  58. </button>
  59. </form>
  60. </div>

Powered by TurnKey Linux.