@if(isset($record))
@php $title=$record->title; @endphp
@elseif(old('title'))
@php $title=old('title'); @endphp
@else
@php $title=''; @endphp
@endif
@error('title')
{{ $message }}
@enderror
@if(isset($record))
@php $package_detail_id=$record->package_detail_id; @endphp
@elseif(old('package_detail_id'))
@php $package_detail_id=old('package_detail_id'); @endphp
@else
@php $package_detail_id=0; @endphp
@endif
@error('package_detail_id')
{{ $message }}
@enderror
@if(isset($record))
@php $packageType=$record->packageType; @endphp
@elseif(old('packageType'))
@php $packageType=old('packageType'); @endphp
@else
@php $packageType=0; @endphp
@endif
@error('packageType')
{{ $message }}
@enderror
@if(isset($record))
@php $type=$record->type; @endphp
@elseif(old('type'))
@php $type=old('type'); @endphp
@else
@php $type=0; @endphp
@endif
@error('type')
{{ $message }}
@enderror
@if(isset($record))
@php $no_of_tiffins=$record->no_of_tiffins; @endphp
@elseif(old('no_of_tiffins'))
@php $no_of_tiffins=old('no_of_tiffins'); @endphp
@else
@php $no_of_tiffins=1; @endphp
@endif
@error('no_of_tiffins')
{{ $message }}
@enderror
@if(isset($record))
@php $from_day=$record->from_day; @endphp
@elseif(old('from_day'))
@php $from_day=old('from_day'); @endphp
@else
@php $from_day=""; @endphp
@endif
@error('from_day')
{{ $message }}
@enderror
@if(isset($record))
@php $to_day=$record->to_day; @endphp
@elseif(old('to_day'))
@php $to_day=old('to_day'); @endphp
@else
@php $to_day=""; @endphp
@endif
@error('to_day')
{{ $message }}
@enderror
Days
@foreach($days as $day)
@endforeach
@if(isset($record))
@php $price=$record->price; @endphp
@elseif(old('price'))
@php $price=old('price'); @endphp
@else
@php $price=''; @endphp
@endif
@error('price')
{{ $message }}
@enderror
@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
@error('visible_for')
{{ $message }}
@enderror
@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
@error('tags')
{{ $message }}
@enderror
@if(isset($record->description))
@php $description = $record->description; @endphp
@else
@php $description = ''; @endphp
@endif
@if(isset($record->photo) && $record->photo != '' && ($action=='Edit' || $action=='View'))
@php $photo = $record->photo; @endphp
@else
@php $photo = ''; @endphp
@endif
@if($photo!="")
@endif
@error('photo')
{{ $message }}
@enderror