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

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

Warning: Attempt to read property "" on null in /var/www/html/pruthvi/resources/views/leap_project_incharge/attachments.blade.php on line 11
{{ $project_incharge->label($file) }} {{ EasyForm::viewImage($file, null, $project_incharge->$file) }} @elseif($file == 'address_proof_copy')
Warning: Undefined variable $person in /var/www/html/pruthvi/resources/views/leap_project_incharge/attachments.blade.php on line 15

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

Warning: Attempt to read property "" on null in /var/www/html/pruthvi/resources/views/leap_project_incharge/attachments.blade.php on line 15
{{ EasyForm::viewFile($file, null, $project_incharge->$file, $project_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_project_incharge/attachments.blade.php:21 Stack trace: #0 {main} thrown in /var/www/html/pruthvi/resources/views/leap_project_incharge/attachments.blade.php on line 21