@extends('admin.layouts.app') @section('title', 'Add Customer') @section('content')

{{ $data == null ? 'Add' : 'Update ' }} Customer {{ $data == null ? '' : '#' . $data->id }}

{{ $data == null ? 'Upload' : 'Update ' }} Customer Details

@if ($errors->any()) {{ implode('', $errors->all('
:message
')) }} @endif
@csrf
@if (Auth::user()->getRole() == 'admin')
@if ($data && $data->getRole() == 'vendor')
@endif @endif
0%

Seller Details

@if ($data && $data->getRole() == 'vendor')
@foreach ($data->getAllMeta() as $key => $item) @endforeach
Key Value
{{ ucwords(str_replace('_', ' ', $key)) }} {{ $item }}
@endif @if ($data && $data->getRole() == 'vendor' && $data->hasTax())
@if ($data->getMeta('seller_type') == 'individual') @elseif ($data->getMeta('seller_type') == 'business') @if ($data->getTax->disregarded) @endif @endif
Key Value
Full legal name {{ $data->getTax->name }}
Tax Payer ID {{ $data->getTax->payer_id }}
Drivers License @if ($data->getMeta('document')) Download @else

Not Uploaded

@endif
Busniess Disregarded Entity {{ $data->getTax->disregarded == 1 ? 'Yes' : 'No' }}
Busniess Taxes File @if ($data->getTax->business_document) Download @else

Not Uploaded

@endif
Articles of Incorporation @if ($data->getMeta('document')) Download @else

Not Uploaded

@endif
@endif
@endsection @push('css') @endpush @push('js') @endpush