@include('include.errors')
@php $package_detail_id=0; @endphp
@if(old('package_detail_id'))
@php $package_detail_id=old('package_detail_id'); @endphp
@elseif(isset($package))
@php $package_detail_id=$package->package_detail_id; @endphp
@endif
@php $packageType=""; @endphp
@if(old('packageType'))
@php $packageType=old('packageType'); @endphp
@elseif(isset($package))
@php $packageType=$package->packageType; @endphp
@endif
@php $type=""; @endphp
@if(old('type'))
@php $type=old('type'); @endphp
@elseif(isset($package))
@php $type=$package->type; @endphp
@endif
@php $from_day=""; @endphp
@if(old('from_day'))
@php $from_day=old('from_day'); @endphp
@elseif(isset($package))
@php $from_day=$package->from_day; @endphp
@endif
@php $to_day=""; @endphp
@if(old('to_day'))
@php $to_day=old('to_day'); @endphp
@elseif(isset($package))
@php $to_day=$package->to_day; @endphp
@endif
Days
@foreach($days as $day)
@endforeach
@php $visible_for=''; @endphp
@if(old('visible_for'))
@php $visible_for=old('visible_for'); @endphp
@elseif(isset($package))
@php $visible_for=$package->visible_for; @endphp
@endif
@php $tags=[]; @endphp
@if(old('tags'))
@php $tags=old('tags'); @endphp
@elseif(isset($package))
@php $tags=($package->package_customers) ? $package->package_customers->pluck('customer_id')->toArray() : []; @endphp
@endif
@php $description=''; @endphp
@if(old('description'))
@php $description=old('description'); @endphp
@elseif(isset($package))
@php $description=$package->description; @endphp
@endif
@if (isset($package) && $package->photo != NULL)
@else
@endif