@extends('layouts.admin') @section('page-title') {{__('Manage Product & Services')}} @endsection @push('script-page') @endpush @section('breadcrumb')
| {{__('Name')}} | {{__('Sku')}} | {{__('Sale Price')}} | {{__('Purchase Price')}} | {{__('Tax')}} | {{__('Category')}} | {{__('Unit')}} | {{__('Quantity')}} | {{__('Type')}} | {{__('Action')}} | |
|---|---|---|---|---|---|---|---|---|---|---|
| {{ $productService->name}} | {{ $productService->sku }} | {{ \Auth::user()->priceFormat($productService->sale_price) }} | {{ \Auth::user()->priceFormat($productService->purchase_price )}} |
@if (!empty($productService->tax_id))
@php
$itemTaxes = [];
$getTaxData = Utility::getTaxData();
foreach (explode(',', $productService->tax_id) as $tax) {
if (isset($getTaxData[$tax])) {
$itemTax['name'] = $getTaxData[$tax]['name'];
$itemTax['rate'] = $getTaxData[$tax]['rate'] . '%';
$itemTaxes[] = $itemTax;
} else {
$itemTax['name'] = 'Unknown Tax';
$itemTax['rate'] = '0%';
$itemTaxes[] = $itemTax;
}
}
$productService->itemTax = $itemTaxes;
@endphp
@foreach ($productService->itemTax as $tax)
{{ $tax['name'] . ' (' . $tax['rate'] . ')' }} @endforeach @else - @endif |
{{ !empty($productService->category)?$productService->category->name:'' }} | {{ !empty($productService->unit)?$productService->unit->name:'' }} | @if($productService->type == 'product'){{$productService->quantity}} | @else- | @endif{{ucwords($productService->type)}} | @if(Gate::check('edit product & service') || Gate::check('delete product & service'))@can('edit product & service') @endcan @can('delete product & service') @endcan | @endif