Altaf Pet Shop Admin

Technologies:
PHP 8.3+ Laravel 12 MySQL Laravel Sanctum Blade Templates Bootstrap 5 css jQuery DataTables Laravel DOMPDF
Project Overview

The Admin Panel is a comprehensive management interface for the local shop e-commerce system. It provides shop administrators with full control over products, categories, orders, customers, and content through a user-friendly Bootstrap 5 interface with modal-based CRUD operations.


1. Admin Authentication

Secure admin login/logout system

Session-based authentication

Separate admin authentication from customer accounts

Admin-only access control

2. Banner Management

Fields: Title, subtitle, banner image, status (active/inactive)

Features:DataTables for banner listing

Add/edit banners via Bootstrap modals

Activate/deactivate banners with single click

Image upload and preview

Status toggle functionality

3. Product Category Management

Fields: Category name, category slug (auto-generated from name), category image, status

Features:Category listing with DataTables

Create/edit categories via modals

Soft delete support

Status management

Image upload for category thumbnails

4. Product Management

Fields: Category ID, product name, product slug (auto-generated), description, price, discount price, stock quantity, product image, status, featured flag

Features:Product listing with search functionality

Add/edit products via Bootstrap modals

Image upload and preview

Stock quantity control

Price and discount management

Mark products as featured

Activate/deactivate products

Category assignment

5. Order Management

Fields: Order ID, customer name, total amount, payment type (COD/Online), order status, created date

Features:View all orders with DataTables

View order details in modal

Update order status (pending → processing → shipped → delivered/cancelled)

Filter orders by status

Real-time order status updates

6. User Management

Fields: User ID, name, email, phone, status (active/blocked)

Features:View all registered users

Block/unblock users

View user order history

Filter users by status

Customer account monitoring

7. Static Pages Management (CMS)

Fields: Title, content (rich text editor), last updated date, status

Pages: About Us, Terms & Conditions, Privacy Policy

Features:CKEditor WYSIWYG editor for content

Edit page content directly

Publish/unpublish pages

Track last update timestamps

8. Billing System (Point of Sale)

Features:In-store billing system

Product search for billing

Create bills manually

Download/print bill PDFs

Send bills via email

View billing history

Shop settings configuration


API - 

The RESTful API provides complete backend functionality for mobile apps, third-party integrations, or headless frontend implementations. Built with Laravel Sanctum for secure token-based authentication, the API covers all e-commerce operations from product browsing to order management.


Authentication

Method: Laravel Sanctum (Token-based)

Header: Authorization: Bearer {token}

Public Endpoints: Registration, login, product browsing, shop settings

Protected Endpoints: User profile, cart, orders, wishlist (require authentication)


API Features

Product Filters

Filter by category slug

Price range (min_price, max_price)

Search query

Sort options: price_low, price_high, name_asc, name_desc, newest

Pagination with customizable per_page


Response Format

Standardized JSON responses

Success: { success: true, message: "...", data: {...} }

Error: { success: false, message: "...", errors: {...} }

Pagination metadata included

Special Features

Email or phone login support

Both email and phone required for registration (both unique)

Buy Now functionality for direct checkout

Order PDF download

Cart persistence with authentication

Related products on product details

Wishlist management