@extends('layouts.master') @section('header') @include('layouts.partials.header') @endsection @section('navbar') @include('layouts.partials.nav') @endsection @section('sidebar') @include('layouts.partials.sidebar') @endsection @section('content')

{{__("Edit Customer")}}

{{ method_field('PATCH') }}
@foreach($item->address as $key=>$value) {{-- {{dd(array_key_exists('title',$value))}}--}}

@if (array_key_exists('title',$value)){{ucfirst($value["title"])}}@endif

@endforeach
@foreach($customer_groups as $group)
@if($group->id==1) {{-- --}} @else groups->contains($group->id)) checked @endif value="{{$group->id}}" name="customer_groups[]" type="checkbox" id="group_{{$group->id}}" class="custom-control-input validate[minCheckbox[1]]" > @endif
@endforeach
status==1) checked @endif class="custom-control-input pl-2 radio validate[groupRequired[status]]" id="active" value="1" name="status">
status==0) checked @endif class="custom-control-input radio validate[groupRequired[status]]" id="inactive" value="0" name="status">
{{__("Back")}}
@endsection @section('footer') @include('layouts.partials.footer') @endsection @section('scripts') @include('layouts.partials.scripts') @endsection