@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 {{ $data != null ? method_field('PUT') : '' }}
@if ($data && $data->getRole() == 'vendor')
@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
@elseif ($data && $data->getRole() == 'vendor' && !$data->hasTax())

User has not uploaded tax information

@endif @if ($data && $data->getRole() == 'vendor')
@foreach ($data->getAllMeta() as $key => $item) @endforeach
Key Value
{{ ucwords(str_replace('_', ' ', $key)) }} {{ $item }}
@endif
0%
@endsection @push('css') @endpush @push('js') @endpush