@extends('layouts.app') @section('header')
@endsection @section('content') @php $address = []; if($sales_details->branch_id == 1) $address = \Config::get('formdata.address_m'); else $address = \Config::get('formdata.address_p'); @endphp
{!! \FormHelper::getAddress($address) !!}
GSTIN: {{ \Config::get('formdata.gst') }}
Pharmacy Information
Pharmacy Date: {{ date('d-m-Y', strtotime($sales_details->created_at)) }}
Pharmacy Id:      {{ $sales_details->code }}
{{--
Pharmacy Information :
Pharmacy Date : {{ date('d-m-Y', strtotime($sales_details->created_at)) }}
Pharmacy Id : {{ $sales_details->code }}
--}}
Customer Information :
Name: {{ $sales_details->customer_name }}
Code: {{ isset($sales_details->patient->code) ? $sales_details->patient->code : '' }}
Address: {{ $sales_details->customer_address }}
Payment Mode :{{ \FormHelper::getPaymentText($sales_details->mode) }}
@php $tax_total = 0; $sub_total = 0; $taxable_amount = 0; @endphp @foreach($sales_list as $list) @if($list->gst > 0) @php $sub_total += $list->sub_total; $taxable_amount += ($list->purchase_cost * $list->sales_quantity); @endphp @endif @endforeach @php $tax_total = $sub_total - $taxable_amount; @endphp
Stock Catagory Name MRP Unit Price No.of.Units GST Total
{{ $list->category_name }} {!! wordwrap($list->stock->stock_name,15,"
",true) !!}
{{ $list->selling_cost }} {{ $list->purchase_cost }} {{ $list->sales_quantity }} {{ $list->gst }} {{ $list->sub_total }}
Tax Summary
Taxable Amount IGST CGST SGST Kerala Flood cess @1%
{{ number_format($taxable_amount,2) }} 0.0 {{ number_format($tax_total/2,2) }} {{ number_format($tax_total/2,2) }} {{ $sales_details->cess }}
{{-- --}}
Pharmacy total : {{ $sales_details->sales_total }}
Discount ( {{ $sales_details->discount_percent }}% ) : {{ $sales_details->discount_amount }}
Taxable : {{ number_format($taxable_amount,2) }}
Tax : {{ $tax_total }}
Kerala Flood cess @1% {{ $sales_details->cess }}
Rounded Off Amount : {{ $sales_details->round_off_amount }}

Grand Total :

{{ $sales_details->grand_total }}
Terms And Condition :

{{ \Config::get('formdata.phymacy_tc') }}

@endsection @section('scripts') @endsection