@extends('layouts.layout-2') @section('content')

{{ __('back') }} {{ __('navigation.withdrawals') }} #{{ $withdrawal->id }}

@if (Session::has('alert-success'))
{{ Session::get('alert-success') }}
@endif @if (Session::has('alert-error'))
{{ Session::get('alert-error') }}
@endif
@if ($withdrawal->user_shop) @endif @if ($withdrawal->reason) @endif
{{ __('withdrawal.success_received_at') }} {{ optional($withdrawal->declared_at)->format('d.m.Y H:i') }} {{ __('withdrawal.clock') }}
{{ __('withdrawal.order_number') }} #{{ $withdrawal->order_reference }} @if ($withdrawal->shopping_order_id) @endif
{{ __('withdrawal.choose_scope_hl') }} @if ($withdrawal->isFullWithdrawal()) {{ __('withdrawal.scope_full') }} @else {{ __('withdrawal.scope_partial') }} @endif
Kunde {{ $withdrawal->customer_name }}
{{ $withdrawal->customer_email }}
Shop {{ $withdrawal->user_shop->name }}
{{ __('withdrawal.reason') }} {{ $withdrawal->reason }}
@if (! empty($withdrawal->items))
{{ __('withdrawal.mail_items_hl') }}
    @foreach ($withdrawal->items as $item)
  • {{ $item['qty'] }} × {{ $item['name'] }}
  • @endforeach
@endif
Status & Notiz
{!! Form::open(['route' => ['admin_withdrawals_update', $withdrawal->id], 'method' => 'post']) !!}
{!! Form::label('status', 'Status') !!} {!! Form::select('status', collect($statuses)->mapWithKeys(fn ($s) => [$s => ucfirst($s)])->all(), $withdrawal->status, ['class' => 'form-control']) !!}
{!! Form::label('admin_note', 'Interne Notiz') !!} {!! Form::textarea('admin_note', $withdrawal->admin_note, ['class' => 'form-control', 'rows' => 5]) !!}
{!! Form::close() !!}
@endsection