@extends('invoice.layouts') @section('css') @endsection @section('header')
TAX INVOICE
@endsection @section('footer')

Generated using {{ config('app.name', 'Laravel') }}

Report date: {{ \Carbon\Carbon::now() }}

@endsection @section('content')
Vendor Invoice Number {{ $data->vendor_number }}
Invoice Date {{ $data->created_at->format('d M Y') }}
Invoice From :
{{ $data->vendor->name }}
Phone : {{ $data->vendor->mobile_no }}
Email : {{ $data->vendor->email }}
Address : {{ $data->vendor->address ?? '' }}, {{ $data->vendor->country->name ?? 'India' }}, {{ $data->vendor->state->name ?? 'Gujarat' }}, {{ $data->vendor->city->name ?? 'Surat' }}, {{ $data->vendor->pincode ?? '123456' }}
Invoice To :
@if($data->store_id) {{ $data->store->name }}
Address : {{ $data->store->address ?? '' }}, {{ $data->store->country->name ?? 'India' }}, {{ $data->store->state->name ?? 'Gujarat' }}, {{ $data->store->city->name ?? 'Surat' }}, {{ $data->store->pincode ?? '123456' }}
@else Sai Power Traders
Phone : 9998546470/9099914177,
Email : inquiry@saipowertraders.com
Address : PLOT NO -4, OPPOSITE POOJA PETROL, KABILPORE,NAVSARI - 396424
GSTIN : 24AEQFS9024Q1Z5 @endif
@foreach ($data->products as $product) @endforeach @if ($data->gst > 0) @endif
S.N. Product Quantity Unit LP Discount % Price Amount(₹)
{{ $loop->iteration }} {{ $product->product->name }} - {{ $product->product->brand->name ?? '' }} {{ $product->quantity }} {{ productUnit($product->product->unit) }} {{ numberFormat($product->lp) }} {{ numberFormat($product->discount) }} {{ numberFormat($product->price) }} {{ numberFormat($product->total) }}
Sub Total {{ numberFormat($data->sub_total) }}
CGST ({{ numberFormat($data->gst) }}%) {{ numberFormat($data->cgst_amount) }}
SGST ({{ numberFormat($data->gst) }}%) {{ numberFormat($data->sgst_amount) }}
Discount {{ numberFormat($data->discount) }}
Grand Total {{ numberFormat($data->total) }}
{{ $data->total_text }}
Signature
Authorised Signatory
@endsection