@extends('admin.app')@section('content')
{{ __('variables.elements_list') }} {{ __('variables.elements_basket') }} @if($groupSubRelations->del_to_rec == 1) @endif

@if(!empty($orders) && count($orders))
@if($groupSubRelations->active == 1) @endif @if($groupSubRelations->del_to_rec == 1 || $groupSubRelations->del_from_rec == 1) @endif @foreach($orders as $one_order) @if($groupSubRelations->del_to_rec == 1) @endif @endforeach
№.: {{__('variables.name_text')}} {{__('variables.email_text')}} {{__('variables.phone')}} {{__('variables.date_table')}} {{__('variables.total_count')}} {{__('variables.total_price')}} {{__('variables.delivery_method')}} {{__('variables.pay_method')}}{{__('variables.active_table')}} {{__('Details')}}{{__('variables.delete_table')}}
{{ $one_order->id }} {{$one_order->ordersUsers->name .' '.$one_order->ordersUsers->last_name ?? ''}} {{$one_order->ordersUsers->email ?? ''}} {{$one_order->ordersUsers->phone ?? ''}} {{ getDefaultDateFormatAdmin($one_order->created_at) }} {{$one_order->ordersData->total_count ?? ''}} {{$one_order->ordersData->total_price ?? ''}} {{$one_order->delivery_method ?? ''}} @if($one_order->delivery_method == 'delivery') ({{$one_order->ordersData->delivery_cost ?? 0}}) @endif {{$one_order->pay_method ?? ''}}
active == 1 ? 'checked' : ''}}>
{{__('Detail')}}
@include('admin.templates.pagination', ['paginator' => $orders]) @else @include('admin.templates.empty-list') @endif
@stop