@extends('layouts.master') @section('title') @lang('Title') @endsection @section('css') @endsection @section('content')
healthpackage
@if ($message = Session::get('success'))
{{ $message }}
@endif
@method('PUT') {{ csrf_field() }} @if ($errors->any())
    @foreach ($errors->all() as $error)
  • {{ $error }}
  • @endforeach
@endif
@if ($errors->has('department'))
{{ $errors->first('department') }}
@endif
@if ($errors->has('name'))
{{ $errors->first('name') }}
@endif
@if ($errors->has('package_rate'))
{{ $errors->first('package_rate') }}
@endif
@if ($errors->has('package_rate_age_limit'))
{{ $errors->first('package_rate_age_limit') }}
@endif
@if ($errors->has('description'))
{{ $errors->first('description') }}
@endif
@if ($errors->has('meta_title'))
{{ $errors->first('meta_title') }}
@endif
@if ($errors->has('meta_description'))
{{ $errors->first('meta_description') }}
@endif
@if(!empty($healthpackage->filename)) @if(in_array(pathinfo($healthpackage->filename, PATHINFO_EXTENSION), ['jpg', 'jpeg', 'png', 'gif','svg'])) filename")}}" alt="Example Image" > @else filename")}}" download>Download {{ basename($healthpackage->filename) }} @endif @endif @if ($errors->has('file'))
{{ $errors->first('file') }}
@endif
@php // $file_array=array(); $fileData = []; // Initialize as an array before appending foreach($resgallery as $gallery){ // $file_array[]=$gallery->filename; if (Storage::disk('public')->exists('uploads/gallery/' . $gallery->filename)) { $fileData[] = [ 'file_name' => $gallery->filename, 'file_size' => Storage::disk('public')->size('uploads/gallery/' . $gallery->filename), 'file_url' => asset('storage/uploads/gallery/' . $gallery->filename) ]; } else { // Handle missing file case Log::error('File not found: ' . $gallery->filename); } } // $fileName = json_encode($file_array); @endphp
@endsection @section('script') @include('admin.dropzone-single-edit') @endsection