Add File model with getFileSizeInMB; pass sizeInStorage to show-documents
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -230,7 +230,8 @@ class AutoController extends Controller
|
||||
$countDocs = $allFiles->whereIn('type', ['passport_customer', 'certificate', 'appraiser_certificate', 'insurance_policy', 'participate_certificate'])->count();
|
||||
$countMediaFiles = $allFiles->whereIn('type', ['object_photo', 'object_files', 'compares'])->count();
|
||||
$otherFiles = $allFiles->where('type', 'additional')->count();
|
||||
return view('auto.show-documents', compact('order', 'files', 'type', 'countDocs', 'countMediaFiles', 'otherFiles'));
|
||||
$sizeInStorage = $allFiles->sum('size_in_bytes');
|
||||
return view('auto.show-documents', compact('order', 'files', 'type', 'countDocs', 'countMediaFiles', 'otherFiles', 'sizeInStorage'));
|
||||
}
|
||||
|
||||
public function orderClone($id)
|
||||
|
||||
Reference in New Issue
Block a user