@extends('layouts.admin') @section('header-content') @endsection @section('content')
Area Details
{!! csrf_field() !!}
@if ($errors->has('country')) {{ $errors->first('country') }} @endif
@if ($errors->has('region')) {{ $errors->first('region') }} @endif
@if ($errors->has('city')) {{ $errors->first('city') }} @endif
@if ($errors->has('name')) {{ $errors->first('name') }} @endif
@if ($errors->has('re_visit_type')) {{ $errors->first('re_visit_type') }} @endif
@if ($errors->has('re_visit')) {{ $errors->first('re_visit') }} @endif
@php $week=[]; @endphp @if(!empty($area) && isset($area->area_revisit[0]['revisit_type_id']) && $area->area_revisit[0]['revisit_type_id']==2 ) @foreach($area->area_revisit as $data) @php $week[]=$data->value @endphp @endforeach @endif @if ($errors->has('week')) {{ $errors->first('week') }} @endif
@if ($errors->has('distributor')) {{ $errors->first('distributor') }} @endif


@if(!empty($area)) @foreach($area->sub_areas->toarray() as $key2=>$value) @endforeach @endif @if(!isset($key2) || empty($key2)) @endif


@if(!empty($area)) @if(count($area->products_target)>0)
@endif @foreach($area->products_target->toarray() as $key3=>$value)
@endforeach @endif @if(!isset($key3) || empty($key3)) @endif
@if(!empty($area)) {!! method_field('PUT') !!} @endif {{ csrf_field() }}
@endsection @section('footer-content') {{----}} {{-- --}} {{----}} {{----}} {{--/ muliti date picker--}} {{-- --}} {{--Append Product--}} {{--Append Sub Area--}} @endsection