@foreach ($center_incharge->files() as $file)
File
@if ($file == 'photo')
Warning: Undefined variable $person in /var/www/html/pruthvi/resources/views/leap_center_incharge/attachments.blade.php on line 12

Warning: Undefined variable $file in /var/www/html/pruthvi/resources/views/leap_center_incharge/attachments.blade.php on line 12

Warning: Attempt to read property "" on null in /var/www/html/pruthvi/resources/views/leap_center_incharge/attachments.blade.php on line 12
{{ $center_incharge->label($file) }} {{ EasyForm::viewImage($file, null, $center_incharge->$file) }} @elseif (!in_array($file,['dec_copy']))
Warning: Undefined variable $person in /var/www/html/pruthvi/resources/views/leap_center_incharge/attachments.blade.php on line 16

Warning: Undefined variable $file in /var/www/html/pruthvi/resources/views/leap_center_incharge/attachments.blade.php on line 16

Warning: Attempt to read property "" on null in /var/www/html/pruthvi/resources/views/leap_center_incharge/attachments.blade.php on line 16
{{ EasyForm::viewFile($file, null, $person->$file, $center_incharge->label($file)) }} @else
Warning: Undefined variable $center_incharge in /var/www/html/pruthvi/resources/views/leap_center_incharge/attachments.blade.php on line 19

Warning: Undefined variable $file in /var/www/html/pruthvi/resources/views/leap_center_incharge/attachments.blade.php on line 19

Warning: Attempt to read property "" on null in /var/www/html/pruthvi/resources/views/leap_center_incharge/attachments.blade.php on line 19
{{ EasyForm::viewFile($file, null, $center_incharge->$file, $center_incharge->label($file)) }} @endif
@if (Auth::user()->can('create', $leap_batch))
Fatal error: Uncaught Error: Call to undefined function route() in /var/www/html/pruthvi/resources/views/leap_center_incharge/attachments.blade.php:25 Stack trace: #0 {main} thrown in /var/www/html/pruthvi/resources/views/leap_center_incharge/attachments.blade.php on line 25