Загрузка...

Laravel 9 Tutorial #152 | MultiVendor | Order Invoice (I) | Create HTML Invoice |Print Order Invoice

►Laravel 9 Tutorial from the beginning:- https://www.youtube.com/playlist?list=PLLUtELdNs2ZYTlQ97V1Tl8mirS3qXHNFZ

In Part-152 of the Laravel 9 Tutorial to create a Multi-Vendor E-commerce Website in Laravel 9, we will start working on order invoice that is required at the time of the shipment of the order. Order Invoice can be generated from the admin panel for every order in standard HTML and PDF Format. We will start working on HTML Invoice in this video.

1) Update orders.blade.php file :-
First of all, we will update orders.blade.php file to give link icon for printing order invoice in case of shipped orders.

2) Create Route :- Create GET route for generating order invoice with parameter order id in web.php file like below :-
// Order Invoices
Route::get('view-order-invoice/{id}','OrderController@viewOrderInvoice');

3) Create viewOrderInvoice function :-
Create viewOrderInvoice function at OrdersController in which we are going to get complete order and user details and return to order_invoice blade file that we will create in next step.

3) Create order_invoice.blade.php file :-
Now we will create order_invoice.blade.php file under /resources/views/admin/orders/ folder in which we will create order invoice html that we will search and download from internet.

4) Download "Order Invoice HTML Template"
We will search in Google for keyword "order invoice html template" and copy order invoice from below link to order_invoice.blade.php file :-
https://bootsnipp.com/snippets/9gjD

5) Update order_invoice.blade.php file :-
We are returning order details and user details from viewOrderInvoice function to order_invoice.blade.php file in the same way like we have did in order_details.blade.php file.

We will first make user billing and shipping addresses dynamic and then will show ordered products in foreach loop as shown in video.

We will also calculate order sub total and will show it along with coupon code, coupon discount, shipping charges and grand total.

Now order invoice is ready and you can take printout to test it.

Thanks for watching :)

►Laravel 9 Tutorial Playlist (Create Multi-Vendor E-commerce Website) - https://www.youtube.com/playlist?list=PLLUtELdNs2ZYTlQ97V1Tl8mirS3qXHNFZ

►Click here to subscribe for Laravel & other updates - https://www.youtube.com/stackdevelopers

Popular Stack Developers Series that can help you:-

►React JS Tutorial for Beginners with Laravel 9 - https://www.youtube.com/playlist?list=PLLUtELdNs2ZYnEIWliBpU98gtorNRNHw1

►Laravel Tutorial for Beginners - https://www.youtube.com/playlist?list=PLLUtELdNs2ZaHaFmydqjcQ-YyeQ19Cd6u

►GIT Tutorial for Beginners - https://www.youtube.com/playlist?list=PLLUtELdNs2ZZVQ-dLOMFWvmCCduzJ8c6R

►Laravel API Tutorial - https://www.youtube.com/playlist?list=PLLUtELdNs2ZbcCsd4yAAiBU2L3ROREk8P

►Laravel Interview Questions - https://www.youtube.com/playlist?list=PLLUtELdNs2ZbzB_1Jdp_yFcORwOfWP8RU

►jQuery Tutorial - https://www.youtube.com/playlist?list=PLLUtELdNs2ZbMYoUA46GIonOH29KcjtxA

►Laravel Basic E-commerce Series - https://www.youtube.com/playlist?list=PLLUtELdNs2ZY5drPxIWzpq5crhantlzp7

►Laravel Dating Series - https://www.youtube.com/playlist?list=PLLUtELdNs2ZZrPUnxjlomErJfNvkyS6Hf

►Join this channel to get the complete source code of all series:
https://www.youtube.com/channel/UCExO2i-tLU1NyVZD6zOJQlw/join

Follow Stack Developers on Social Media to get updates and resolve your queries
►Like Facebook Page to get updates - http://facebook.com/stackdevelopers2/
►Join Facebook Group to resolve your queries - http://facebook.com/groups/stackdevelopers
►Follow on Instagram - https://www.instagram.com/stackdevelopers2/
►Follow on GitHub - https://github.com/stackdevelopers

#laravel9 #laravel9tutorial #laravel

Видео Laravel 9 Tutorial #152 | MultiVendor | Order Invoice (I) | Create HTML Invoice |Print Order Invoice канала Stack Developers
Яндекс.Метрика
Все заметки Новая заметка Страницу в заметки
Страницу в закладки Мои закладки
На информационно-развлекательном портале SALDA.WS применяются cookie-файлы. Нажимая кнопку Принять, вы подтверждаете свое согласие на их использование.
О CookiesНапомнить позжеПринять