HEX
Server: Microsoft-IIS/8.5
System: Windows NT YDAWBH120 6.3 build 9600 (Windows Server 2012 R2 Standard Edition) AMD64
User: tentjecom_web (0)
PHP: 7.4.14
Disabled: NONE
Upload Files
File: D:/HostingSpaces/SBogers10/shop.komma.nl/resources/views/vendor/KMS/shipment_groups/index.blade.php
@extends('KMS::layouts.kms')

@php /** @var \Komma\KMS\Globalization\RegionInfo $shopRegionInfo */@endphp
@section('content')
    <div id="entity" class="full-width">
        <div class="entity-header">
            <div class="entity-header-attributes">
                <h2>{{ ucfirst(__('KMS::shipment_groups.shipmentGroups')) }}</h2>
            </div>
        </div>

        @if ($errors->any())
            <div class="alert alert-danger">
                <h2>@lang('KMS::shipment_groups.search_error'):</h2>
                <ul>
                    @foreach ($errors->all() as $error)
                        <li>{{ $error }}</li>
                    @endforeach
                </ul>
            </div>
        @endif
        <div class="entity-tabs">
            <ul>
                <li class="active">
                    <a href="#search">@lang('KMS::shipment_groups.search')</a>
                </li>
            </ul>

        </div>
        <div class="entity-attributes">
            <div id="tab-content-search" class="tab-content active first">
                <form action="{{ route('shipment_groups.search') }}" method="GET">
                    <label for="id">{{ ucfirst(__('KMS::global.id')) }}:</label> <input data-test="id" type="text" id="id" name="id" value="{{ old('id') }}"><br>

                    <label for="perPage">{{ ucfirst(__('KMS::shipment_groups.results_per_page')) }}:</label>
                    <select name="perPage" id="perPage">
                        <option {{ (isset($perPage) && $perPage == 5) ? 'selected' : '' }} value="5">5</option>
                        <option {{ (isset($perPage) && $perPage == 10) ? 'selected' : '' }} value="10">10</option>
                        <option {{ (isset($perPage) && $perPage == 20) ? 'selected' : '' }} value="20">20</option>
                        <option {{ (isset($perPage) && $perPage == 50) ? 'selected' : '' }} value="50">50</option>
                        <option {{ (isset($perPage) && $perPage == 100) ? 'selected' : '' }} value="100">100</option>
                    </select>

                    <input type="submit" data-test="search_shipmentGroups_button" value="{{ ucfirst(__('KMS::shipment_groups.search')) }}">
                </form>

            @if(isset($shipmentGroups)) <!--Only is set when a search was done or latest shipmentGroups where included.-->
                <h2>{{ $resultsTypeTranslation }}</h2>
                @if(count($shipmentGroups) > 0)
                    <form action="{{ route('shipment_groups.batch_edit') }}" method="POST">
                        {{ method_field('PATCH') }}
                        <table class="shipmentGroup-table">
                            <thead>
                            <tr>
                                <th></th>
                                {{--<th></th>--}}
                                <th>Id</th>
                                <th>{{ ucfirst(__('KMS::shipment_groups.status_name')) }}</th>
                                <th>{{ ucfirst(__('KMS::shipment_groups.shipments_count')) }}</th>
                                <th>{{ ucfirst(__('KMS::shipment_groups.created_at')) }}</th>
                            </tr>
                            </thead>
                            <tbody>
                            @foreach($shipmentGroups as $shipmentGroup)
                                @php /** @var \App\ShipmentGroups\ShipmentGroup $shipmentGroup */@endphp
                                <tr>
                                    <td><a href="{{ route('shipment_groups.show', ['shipment_group' => $shipmentGroup]) }}" data-test="shipment_group_{{ $shipmentGroup->id }}">@lang('KMS::shipment_groups.shipmentGroup')</a></td>
                                    <td>{{ $shipmentGroup->id }}</td>
                                    <td>{{ __('KMS::shipment_groups.status.'.$shipmentGroup->status) }}</td>
                                    <td>{{ $shipmentGroup->shipments->count() }}</td>
                                    <td>{{ $shipmentGroup->created_at }}</td>
                                </tr>
                            @endforeach
                            </tbody>
                        </table>
                    </form>
                    @if(method_exists($shipmentGroups, 'links')) {{ $shipmentGroups->links() }} @endif
                @else
                    <p>@lang('KMS::shipment_groups.no_results')</p>
            @endif
            @endif
            <!--Create new shipment group button-->
                <a class="new-item" href="{{ route('shipment_groups.create_and_open') }}"
                   data-test="new_shipment_group">@lang('KMS::shipment_groups.new')</a>

            </div>
        </div>
    </div>
@stop