Add contract management and invoice settings pages
- Created a new Blade view for managing brand contracts with forms for adding and editing contracts, including client and category selection. - Implemented success message notifications for contract actions. - Added a new Blade view for invoice settings, allowing customization of invoice number format, header branding, and default values for new invoices. - Introduced a new PDF view for generating rate cards with customizable styles based on user profile settings. - Developed a profile management page for rate cards, enabling users to update their identity, appearance, and visibility settings.
This commit is contained in:
@@ -41,7 +41,7 @@ class MediaFileController extends Controller
|
||||
return view('files.index', compact('files', 'folders', 'folder', 'clients'));
|
||||
}
|
||||
|
||||
public function store(Request $request): RedirectResponse
|
||||
public function store(Request $request): RedirectResponse|\Illuminate\Http\JsonResponse
|
||||
{
|
||||
$request->validate([
|
||||
'file' => 'required|file|max:51200', // 50 MB
|
||||
@@ -55,6 +55,10 @@ class MediaFileController extends Controller
|
||||
$request->input('client_id')
|
||||
);
|
||||
|
||||
if ($request->expectsJson() || $request->ajax()) {
|
||||
return response()->json(['success' => true, 'message' => 'File uploaded successfully!']);
|
||||
}
|
||||
|
||||
return back()->with('success', '📁 File uploaded successfully!');
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user