@component('yas_member::emails.consignment-layout') @if (isset($consignmentAddressText))

@if (!empty($addressText)) {!! html_entity_decode($addressText, ENT_QUOTES | ENT_HTML5, 'UTF-8') !!} @endif

@endif

@lang('yas_theme::app.emails.dear', ['customer_name' => $adminName]) 👋

@lang('member::app.member.emails.consignment.description')

@php $keys = ['b','db','ss','c','l','k','or','cr','sr','cc','ac','rc']; $selectedAttributes = []; foreach ($keys as $key) { if (!empty($consignment->$key) && $consignment->$key == 1) { $selectedAttributes[] = $attributes[$key] ?? strtoupper($key); } } $comesWithText = count($selectedAttributes) > 0 ? implode(', ', $selectedAttributes) : '-'; $formattedPrice = !empty($consignment->price) ? core()->formatBasePrice((float) $consignment->price) : '-'; @endphp

@lang('member::app.consignment.consignment_no'): {{ $consignment->consignment_no ?? '-' }}

@lang('member::app.consignment.name') {{ $consignment->name ?? '-' }}
@lang('member::app.consignment.email') {{ $consignment->email ?? '-' }}
@lang('member::app.consignment.phone-number') {{ $consignment->contact ?? '-' }}
@lang('member::app.consignment.nric') {{ $consignment->nric ?? '-' }}
@lang('member::app.consignment.brand') {{ $consignment->brand_label ?? '-' }}
@lang('member::app.consignment.model') {{ $consignment->model ?? '-' }}
@lang('member::app.consignment.material') {{ $consignment->material ?? '-' }}
@lang('member::app.consignment.color') {{ $consignment->color ?? '-' }}
@lang('member::app.consignment.hardware') {{ $consignment->hardware ?? '-' }}
@lang('member::app.consignment.stamp') {{ $consignment->stamp ?? '-' }}
@lang('member::app.consignment.condition') {{ $consignment->condition ?? '-' }}
@lang('member::app.consignment.price') {{ $formattedPrice }}
@lang('member::app.consignment.comes_with') {{ $comesWithText }}
@lang('member::app.consignment.date') {{ $consignment->consignment_date ?? '-' }}
@lang('member::app.consignment.item_description') {{ $consignment->item_description ?? '-' }}
@endcomponent