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/carrotps/carrotps.com/resources/views/kms/shop/shipmentgroups/index.blade.php
@extends('kms.layouts.kms')

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

        @if ($errors->any())
            <div class="alert alert-danger">
                <h2>@lang('shop/shipmentGroups.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('shop/shipmentGroups.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 dusk="id" type="text" id="id"
                                                                                       name="id"
                                                                                       value="{{ old('id') }}"><br>

                    <label for="perPage">{{ ucfirst(__('shop/shipmentGroups.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" dusk="search_shipmentGroups_button"
                           value="{{ ucfirst(__('shop/shipmentGroups.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(__('shop/shipmentgroups.status_name')) }}</th>
                                <th>{{ ucfirst(__('shop/shipmentgroups.shipments_count')) }}</th>
                                <th>{{ ucfirst(__('shop/shipmentgroups.created_at')) }}</th>
                            </tr>
                            </thead>
                            <tbody>
                            @foreach($shipmentGroups as $shipmentGroup)
                                @php /** @var \App\Komma\Shop\ShipmentGroups\ShipmentGroup $shipmentGroup */@endphp
                                <tr>
                                    <td>
                                        <a href="{{ route('shipmentgroups.show', ['shipmentGroup' => $shipmentGroup]) }}"
                                           dusk="shipment_group_{{ $shipmentGroup->id }}">@lang('shop/shipmentGroups.shipmentGroup')</a>
                                    </td>
                                    <td>{{ $shipmentGroup->id }}</td>
                                    <td>{{ __('shop/shipmentGroups.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('shop/shipmentGroups.no_results')</p>
            @endif
            @endif
            <!--Create new shipment group button-->
                <a class="new-item" href="{{ route('shipment_groups.create_and_open') }}"
                   dusk="new_shipment_group">@lang('shop/shipmentgroups.new')</a>

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