@extends("common.layout") @section("header") @endsection @section("content")

배송목록

@csrf
{{ $data->count() }}
@foreach ($data as $item) @php $country_id = $item->country_id; $zipcode = $item->zip_code ?: $item->user->zip_code; $address = $item->address ?: $item->user->address; $address_detail = $item->address_detail ?: $item->user->address_detail; $enrollments = $item->payment->enrollments; @endphp @endforeach
번호 회원명 회원아이디(계정) 주문번호 결제상태 배송상태 택배사 송장번호 수신자명 수신자연락처 배송주소 배송항목
{{ $item->id }} {{ $item->user->name }} {{ $item->user->email }} {{ $item->user->edm_id ?? "(".$item->user->edm_id.")" }} {{ $item->payment->old_index > 0 ? $item->payment->old_index : $item->payment->payment_no }} {{ $pStatus[$item->payment->status] }}
status, ['CANCELED', 'NOT_APPLICABLE']) ) />
@if (! in_array($item->status, ['CANCELED', 'NOT_APPLICABLE']))
@endif
{{ $item->receiver }} (+{{ $item->phone_code ?? 82 }}) {{ $item->mobile }}
  • 국가
    {{ $country[$country_id] }}
  • 우편번호
    {{ $zipcode }}
  • 주소
    {{ $country_id != 30 ? $item->region : ''}} {{ $address }} {{ $address_detail }}
  • 배송메세지
    {{ $item->note }}
@if (! in_array($item->status, ['CANCELED', 'NOT_APPLICABLE']))
@endif
@foreach ($enrollments as $key => $enrollment) @php $giveTextbooks = $enrollment->getEnrollmentGiveTextbooks(); @endphp
{{ $enrollment->getEnrollmentName() }}
    @foreach ($enrollment->enrollmentTextbooks as $book)
  • {{ $book->name }}
  • @endforeach @foreach ($giveTextbooks as $book)
  • {{ $book }}
  • @endforeach
@endforeach
@endsection @push("script") @endpush