@extends('admin.layouts.app') @section('content')
@csrf
@lang('view_pages.owner_details')
@foreach([ ['label' => 'company_name', 'type' => 'text', 'required' => true], ['label' => 'owner_name', 'type' => 'text', 'required' => true], ['label' => 'email', 'type' => 'email', 'required' => true], ['label' => 'password', 'type' => 'password', 'required' => true], ['label' => 'password_confirmation', 'type' => 'password', 'required' => true], ['label' => 'address', 'type' => 'text', 'required' => true], ['label' => 'postal_code', 'type' => 'number', 'required' => true], ['label' => 'city', 'type' => 'text', 'required' => true], ['label' => 'no_of_vehicles', 'type' => 'number', 'required' => true, 'attributes' => ['min' => 1]], ['label' => 'tax_number', 'type' => 'text', 'required' => true], ] as $field)
$value) {{ $attr }}="{{ $value }}" @endforeach> {{ $errors->first($field['label']) }}
@endforeach
@if($app_for !== 'taxi' && $app_for !== 'delivery')
@endif
@lang('view_pages.contact_person_details')
@foreach([ ['label' => 'name', 'type' => 'text', 'required' => true], ['label' => 'surname', 'type' => 'text', 'required' => true], ['label' => 'mobile', 'type' => 'text', 'required' => true], ['label' => 'phone', 'type' => 'text', 'required' => false], ] as $field)
{{ $errors->first($field['label']) }}
@endforeach
@lang('view_pages.bank_details')
@foreach([ ['label' => 'ifsc', 'type' => 'text', 'required' => true], ['label' => 'bank_name', 'type' => 'text', 'required' => false], ['label' => 'account_no', 'type' => 'text', 'required' => false], ] as $field)
{{ $errors->first($field['label']) }}
@endforeach
@lang('view_pages.document')
@foreach ($needed_document as $key => $item)
@if ($item->has_expiry_date) @php $expiryDates = old('expiry_date', [now()->format('Y-m-d')]); // Default to current date if no old values @endphp @foreach ($expiryDates as $expiryDate)
{{ $errors->first('expiry_date') }}
@endforeach @endif @if ($item->has_identify_number) @php $identifyNumbers = old('identify_number', [$item->identify_number_locale_key]); // Default to the item's identify number locale key if no old values @endphp @foreach ($identifyNumbers as $index => $identifyNumber)
@endforeach @endif
Browse…
{{ $errors->first('doc_file.' . $item->id) }}
@endforeach
@endsection