Skip to content

bdemon245/tax-project

Repository files navigation

Laravel Logo

Build Status Total Downloads Latest Stable Version License

About This Project

This is a real-world application that handles tax related operation like managing clients, sending invoices, handling reports, tracking events & appointments etc. We have developed an application that will play a crucial role in the digitalization of the IT sector in our country. The general public can quickly and reliably understand all the laws and regulations related to income tax through this application. It will eliminate the hassle of paperwork for ordinary people when submitting income tax. Anyone can access any book related to the law and can file any case pertaining to the law. The admin can monitor their employees' work through this application. Overall, this application will have a positive and convenient role in the advancement of Bangladesh's economy.

Core Features:

  • Used Laravel, Bootstrap, jQuery & vanilla JavaScript
  • Developed in-app affiliate & bonus system
  • Enabled e-commerce capabilities by providing options to buy Books & Services
  • Integrated features Client Management, Invoice Management, Report Handling, Manual Payments Management, & Custom CMS etc
  • Developed LMS to buy and sell courses
  • Role & permission based administritive panel

Test Credentials:

Getting Started

  • Fork this project.
  • Clone from the forked repository.
  • Install dependencies composer update && npm install.
  • Copy everything from env.example & paste them in .env file.
  • Run the server php artisan ser && npm run dev.

Open your project in https://localhost:8000

Components & Helpers

For productivity & efficiency this project is included with some components and helper functions -### Blade Broilerplate

  • After creating a blade file paste broilerplate in your blade file
@extends('backend.layouts.app')


@section('content')
  <x-backend.ui.breadcrumbs :list="['Frontend', 'Hero', 'List']" />

  <x-backend.ui.section-card name="Hero Section">

      <!-- Your Content-->
      
  </x-backend.ui.section-card>
  

  @push('customJs')
      <script>
          
      </script>
  @endpush
@endsection
  • Components

  1. Inputs
    • TextInput
    <x-backend.form.text-input type="text" name="text_input" label="Text Input" class="other classes" required />
    • ImageInput
    <x-backend.form.image-input name="image_input" image="image_url" class="other classes" />
    • SelectInput
    <x-backend.form.select-input id="category" label="Category" name="category"
       placeholder="Choose Category...">
       @forelse ($categories as $category)
           <option value="{{ $category->id }}">
               {{ $category->name }}
           </option>
       @empty
           <option disabled>No Records Found!</option>
       @endforelse
    </x-backend.form.select-input>
  2. UI Elements
    • Button
    <x-backend.ui.button class="btn-primary">Create</x-backend.ui.button>
    <x-backend.ui.button type="edit" href="{{ route('role.edit', $role->id) }}" class="btn-sm" />
    <x-backend.ui.button type="delete" action="{{route('role.destroy', $role->id)}}" class="btn-sm" />
    <x-backend.ui.button type="custom" href="{{route("home")}}" class="btn-sm">GO Home</x-backend.ui.button>
    • BreadCrumbs
    <x-backend.ui.breadcrumbs :list="['Frontend', 'Hero', 'List']" />
    • Card Wrapper
    <x-backend.ui.section-card name="Hero List">
    {{-- Your Content --}}
    </x-backend.ui.section-card />
    • Recent Active Invoice
    <x-backend.ui.recent-update-invoice :method="route('invoice.create')"/>
  3. Tables
    • BasicTable
     <x-backend.table.basic>
       <thead>
           <tr>
               <th>#</th>
           </tr>
       </thead>
    
       <tbody>
           @foreach ($banners as $key => $banner)
               <tr>
                   <td>{{ ++$key }}</td>
               </tr>
           @endforeach
       </tbody>
     </x-backend.table.basic>
     
    1. Review
      <x-review-section :item="$expert" :reviews="$reviews" :slug="'expert_profile'" />
  • Helpers

  1. useImage

    useImage function takes an image from database and returns an url

    • Example:
    <img src="{{useImage($data->image)}}" alt="" />
  2. saveImage

    saveImage function takes 3 arguments.

    • Image from the request,
    • Which directory to save &
    • A prefix to prepend to the image name (default prefix is "image").
    • The function returns the path where the image has been saved
    • Example:
    $user = new User();
    $user->image = saveImage($request->image, 'avatar', 'user-image'); //This will return "uploads/avatar/user-image-154xxxxx.png"
    $user->save();
  3. updateFile

    updateFile function takes 4 arguments.

    • File from the request,
    • Old file path form database record,
    • Which directory to save &
    • A prefix to prepend to the file name (default prefix is "image").
    • The function returns the new path where the file has been saved
    • Example:
    $user = new User();
    $old_path = $user->image;
    $user->image = updateFile($request->image, $old_path, 'avatar', 'user-image'); //This will update the file & return new path
    $user->save();

Conventions to follow for this project

To be more consistant and productive to our team work in this project we must follow some conventions.

  • Naming Conventions

  1. Use camelCaseing for
  • Blade Files.
  • Function Names.
  • Variables
  1. Always organise your files in separate folders as needed
  2. Always git fetch && git pull before merging any branch into main
  3. Always sync your fork before git fetch && git pull
  4. Keep your sub-branch up to date by using git merge main (if working tree is clean)
  • Resoucre Routes

Resource routes are a very simple way to write clean and consistant routes

Route:resource('user', UserController::class);

This single line of code creates 6 general routes that is necessary for CRUD operations The route names is corresponding to the controllers method names.

  • Controllers

While resource routes creates a clean and consistant they need some predefined method names to work So when ever you need a new controller use below command

php artisan make:controller NameController -r

this will create a controller with all the necessarry methods

Additionally you can create everything you need while creating your Model

php artisan make:model ModelName -a

This command will create Controller, Requests, Migrations and Other files that you may need.

About Laravel

Laravel is a web application framework with expressive, elegant syntax. We believe development must be an enjoyable and creative experience to be truly fulfilling. Laravel takes the pain out of development by easing common tasks used in many web projects, such as:

Laravel is accessible, powerful, and provides tools required for large, robust applications.

Learning Laravel

Laravel has the most extensive and thorough documentation and video tutorial library of all modern web application frameworks, making it a breeze to get started with the framework.

You may also try the Laravel Bootcamp, where you will be guided through building a modern Laravel application from scratch.

If you don't feel like reading, Laracasts can help. Laracasts contains over 2000 video tutorials on a range of topics including Laravel, modern PHP, unit testing, and JavaScript. Boost your skills by digging into our comprehensive video library.

Laravel Sponsors

We would like to extend our thanks to the following sponsors for funding Laravel development. If you are interested in becoming a sponsor, please visit the Laravel Patreon page.

Premium Partners

Contributing

Thank you for considering contributing to the Laravel framework! The contribution guide can be found in the Laravel documentation.

Code of Conduct

In order to ensure that the Laravel community is welcoming to all, please review and abide by the Code of Conduct.

Security Vulnerabilities

If you discover a security vulnerability within Laravel, please send an e-mail to Taylor Otwell via [email protected]. All security vulnerabilities will be promptly addressed.

License

The Laravel framework is open-sourced software licensed under the MIT license.

About

A multipurpose application that handles various tasks like client management, project management, finance & invoice management etc

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •