@include('admin.components.form.input',[
'label' => "First Name*",
'name' => "firstname",
'placeholder' => "Enter First Name...",
'value' => old('firstname',auth()->user()->firstname)
])
@include('admin.components.form.input',[
'label' => "Last Name*",
'name' => "lastname",
'placeholder' => "Enter Last Name...",
'value' => old('lastname',auth()->user()->lastname)
])
@include('admin.components.form.input',[
'label' => "Address",
'name' => "address",
'placeholder' => "Enter Address...",
'value' => old('address',auth()->user()->address->address ?? "")
])
@php
$old_city = old('city',auth()->user()->address->city ?? "");
@endphp
@include('admin.components.form.input',[
'label' => "City",
'name' => "city",
'placeholder' => "Enter City...",
'value' => old('city', $old_city)
])
@php
$old_state = old('state',auth()->user()->address->state ?? "");
@endphp
@include('admin.components.form.input',[
'label' => "State",
'name' => "state",
'placeholder' => "Enter State...",
'value' => old('state', $old_state)
])
@include('admin.components.form.input',[
'label' => "Zip Code",
'name' => "zip_code",
'placeholder' => "Enter Zip...",
'value' => old('zip_code',auth()->user()->address->zip ?? "")
])