@extends('layouts.back-end.body') @section('content')

{{__("message.customer")}}{{__("message.vip")}} @if($title) {{__("message.edit")}} @endif

@if($title == 'View')
@endif
@csrf @if (isset($row)) @endif

@if(isset($row['vip_package'])) @foreach($row['vip_package'] as $kp => $vp) @php $my_product = ''; $product = isset($vp['product']['product_title']) ? $vp['product']['product_title'] : ''; $price = isset($vp['product']['price']) ? $vp['product']['price'] : 0; $commission_price = isset($vp['product']['commission']['price']) ? $vp['product']['commission']['price'] : 0; $my_product = 'Price: '.number_format($price,2).'THB'.'Product: '.$product.'Commission: '.number_format($commission_price,2).'THB'; @endphp
@if($kp == 0)
{{__("message.project")}}{{__("message.vip")}}
{{__("message.please select products created")}}
%
@else
%
@endif
@endforeach
@if(isset($row['vip_package'])) @if(count($row['vip_package']) < 1)
{{__("message.project")}}{{__("message.vip")}}
{{__("message.please select products created")}}
@else @endif @endif
%
@else
{{__("message.project")}}{{__("message.vip")}}
{{__("message.please select products created")}}
%
@endif
@if($title !== 'View')
@endif
@endsection