You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

35 lines
1.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. {{ $location->code }} &mdash; {{ $location->name }}
  6. </h1>
  7. @if($location->description)
  8. <p class="text-xl my-4">
  9. {{ $location->description }}
  10. </p>
  11. @endif
  12. @if($location->capacity)
  13. <p class="text-gray-500">
  14. Capacity: {{ $location->capacity }} units
  15. </p>
  16. @endif
  17. <h2 class="text-2xl font-bold mt-8">
  18. Stock held here
  19. </h2>
  20. @if(count($stock) === 0)
  21. <p class="text-gray-500 my-4">Nothing is stored here yet.</p>
  22. @endif
  23. <ul class="my-4 space-y-2">
  24. @foreach($stock as $row)
  25. <li class="bg-gray-50 rounded-lg p-4 flex justify-between items-center">
  26. <a href="{{ $row->itemRoute }}" class="font-bold underline">{{ $row->item->name }}</a>
  27. <span class="text-gray-500">{{ $row->quantity }} units</span>
  28. </li>
  29. @endforeach
  30. </ul>
  31. </div>

Powered by TurnKey Linux.