@extends('layouts.app') @section('content')
{{ __('Menu') }}
@include('partials.menu')
{{ __('Create Customer') }} {{ __('Go Back') }}
@if(isset($custom_errors)) @endif
@csrf @method('POST') @foreach ($columns as $key) @php $name = ucwords(str_replace('_', ' ', $key)); if ($key == 'customer_id') { continue; } $column_types = array( 'customer_id' => 'int', 'customer_opera_id' => 'varchar(50)', 'customer_name' => 'varchar(75)', 'customer_is_child_ind' => 'varchar(1)', 'customer_is_parent_ind' => 'varchar(1)', 'customer_parent_id' => 'int', 'customer_branch_description' => 'varchar(50)', 'customer_address_1' => 'varchar(100)', 'customer_address_2' => 'varchar(100)', 'customer_address_3' => 'varchar(100)', 'customer_address_4' => 'varchar(100)', 'customer_address_5' => 'varchar(100)', 'customer_county' => 'varchar(50)', 'customer_postcode' => 'varchar(25)', 'customer_phone' => 'varchar(50)', 'customer_fax' => 'varchar(50)', 'customer_country' => 'varchar(50)', 'customer_discount_active_ind' => 'varchar(1)', 'customer_website' => 'varchar(100)', 'customer_on_stop_ind' => 'varchar(1)', 'customer_proforma_ind' => 'varchar(1)', 'customer_free_van_days' => 'varchar(50)', 'customer_cash_on_collection_ind' => 'varchar(1)', 'customer_views' => 'int', 'customer_catalogue_copies' => 'int', 'customer_special_delivery_agreements' => 'text', 'customer_ack_email' => 'text', 'customer_order' => 'int', 'customer_information' => 'text', ); @endphp
@if ($key == 'customer_parent_id') @elseif ($key == 'customer_is_child_ind') @elseif ($key == 'customer_is_parent_ind') @elseif($column_types[$key] == 'int') @elseif($column_types[$key] == 'decimal(11,2)') @elseif($column_types[$key] == 'varchar(50)') @elseif($column_types[$key] == 'varchar(255)') @elseif($column_types[$key] == 'varchar(100)') @elseif($column_types[$key] == 'varchar(2)') @elseif($column_types[$key] == 'varchar(1)') @else @endif
@endforeach
@endsection