@t('Order') {{ $data->id }}

@t('Order details')

@if ($data->event_id) @endif @include('Plugins/Payment/Views/Elements/Order/dates') @if ($data->net_amount > 0) @endif @if ($data->people) @endif @if ($data->Venue->type == 'Bowling') @endif @if (isset($data->extra->gender) && $data->extra->gender) @endif
@t('Event') @if ($data->Event->name) {{ $data->Event->name }} @else @t('No Event Name') @endif
@t('Status') {{ $data->status }} @if ( (!isset($edit) || !$edit) && $data->status == 'pending' ) | @t('activate') @endif @if ( (!isset($edit) || !$edit) && $data->status == 'active' ) | @t('cancel') @endif
@t('Amount Paid') @if ($currency->id != $order_currency->id) @t('%s (%s)', [ amount($data->paid_amount, [ 'to' => $order_currency->id ]), amount($data->paid_amount) ]) @else {{ amount($data->paid_amount) }} @endif @if ( (!isset($edit) || !$edit) && $data->paid_amount > 0 && $data->status == 'active' && ( !isset($data->extra->refundable) || $data->extra->refundable == true ) ) | @if ($data->payment == 'card') @t('refund') @else @t('cancel') @endif @endif
@t('Net Amount') @if ($currency->id != $order_currency->id) {{ amount($data->net_amount, [ 'to' => $order_currency->id ]) }} @else {{ amount($data->net_amount) }} @endif
@t('LaneEngine Fee') @if ($currency->id != $order_currency->id) {{ amount(($data->paid_amount - $data->net_amount), [ 'to' => $order_currency->id ]) }} @else {{ amount(($data->paid_amount - $data->net_amount)) }} @endif
@t('Total Amount') @if ($currency->id != $order_currency->id) @t('%s (%s)', [ amount($data->total, [ 'to' => $order_currency->id ]), amount(($data->total)) ]) @else {{ amount(($data->total)) }} @endif
@t('Remaining to be paid') @if ($currency->id != $order_currency->id) @t('%s (%s)', [ amount(($data->remaining_payment), [ 'to' => $order_currency->id ]), amount($data->remaining_payment) ]) @else {{ amount($data->remaining_payment) }} @endif
@t('Discount') @if (isset($edit) && $edit) {!! Form::number( 'data[Order][discount]', (isset($data->Order->discount) ? $data->Order->discount : null), [ 'class' => 'form-control text-right', 'step' => '0.01', 'placeholder' => '0.00', 'min' => '0' ] ) !!} @else {{ amount(($data->discount ? $data->discount : 0)) }} @endif
@t('Initial Payment Type') {{ $data->type }} @if ($data->payment) ( {{ $data->payment }} ) @endif
@t('People') @if (isset($data->people)) {{ $data->people }} @endif
@t('Assigned Slots') {{ (isset($data->LinesOrder) ? count($data->LinesOrder) : 0) }}
@t('Gender') ( @if (isset($data->extra->gender)) {{ $data->extra->gender }} @endif
@t('Created') @datetime($data->created)
{{-- @if (!$data->user_id) --}} @t('Edit User Details') {{-- @endif --}}

@t('User Details')

@if (isset($data->extra->user->birthday)) @endif
@t('Name') @if (isset($data->User->id)) {{ $data->User->name }} @else @if (isset($data->extra->user)) {{ $data->extra->user->first_name }} {{ $data->extra->user->last_name }} @else @t('N/A') @endif @endif
@t('Email') @if (isset($data->User->id)) {{ $data->User->email }} @else @if (isset($data->extra->user->email)) {{ $data->extra->user->email }} @else @t('N/A') @endif @endif
@t('Phone') @if (isset($data->User->id)) @if ($data->User->phone) {{ $data->User->phone }} @else @t('N/A') @endif @else @if (isset($data->extra->user->phone)) {{ $data->extra->user->phone }} @else @t('N/A') @endif @endif
@t('Birthday') @date($data->extra->user->birthday)
@if (isset($data->extra->status))

@t('Other info')

@t('Status') @if (isset($data->extra->status)) {{ $data->extra->status }} @endif
@t('Type') @if (isset($data->extra->type)) {{ $data->extra->type }} @endif
@t('Reference') @if (isset($data->extra->reference)) {{ $data->extra->reference }} @endif
@t('People') @if (isset($data->people)) {{ $data->people }} @endif
@t('Payment Deadline') @if (isset($data->payment_deadline)) @date($data->payment_deadline) @endif
@t('Voucher') @if (isset($data->extra->voucher)) {{ $data->extra->voucher }} @endif
@t('Upgrade') @if (isset($data->extra->upgrade)) {{ $data->extra->upgrade }} @endif
@endif