@extends('admin.layouts.master') @section('content') @can('create', App\Inventory::class) @include('admin.inventory._add') @endcan
{{ trans('app.image') }} | {{ trans('app.sku') }} | {{ trans('app.title') }} | {{ trans('app.condition') }} | {{ trans('app.price') }} ( {{ trans('app.excl_tax') }} ) | {{ trans('app.quantity') }} | {{ trans('app.option') }} |
---|---|---|---|---|---|---|
@if($inventory->image)
|
{{ $inventory->sku }} | {{ $inventory->title }} | {{ $inventory->condition }} |
@if(($inventory->offer_price > 0) && ($inventory->offer_end > \Carbon\Carbon::now()))
@php
$offer_price_help =
trans('help.offer_starting_time') . ': ' .
$inventory->offer_start->diffForHumans() . ' ' . trans('app.and') . ' ' .
trans('help.offer_ending_time') . ': ' .
$inventory->offer_end->diffForHumans();
@endphp
{{ $inventory->sale_price }} {{ get_formated_currency($inventory->offer_price) }} @else {{ get_formated_currency($inventory->sale_price) }} @endif |
@if(Gate::allows('update', $inventory)) {{ ($inventory->stock_quantity > 0) ? $inventory->stock_quantity : trans('app.out_of_stock') }} @else {{ ($inventory->stock_quantity > 0) ? $inventory->stock_quantity : trans('app.out_of_stock') }} @endif | @can('view', $inventory) @endcan @can('update', $inventory) @endcan @can('delete', $inventory) {!! Form::open(['route' => ['admin.stock.inventory.trash', $inventory->id], 'method' => 'delete', 'class' => 'data-form']) !!} {!! Form::button('', ['type' => 'submit', 'class' => 'confirm ajax-silent', 'title' => trans('app.trash'), 'data-toggle' => 'tooltip', 'data-placement' => 'top']) !!} {!! Form::close() !!} @endcan |
{{ trans('app.image') }} | {{ trans('app.sku') }} | {{ trans('app.title') }} | {{ trans('app.condition') }} | {{ trans('app.price') }} ( {{ trans('app.excl_tax') }} ) | {{ trans('app.quantity') }} | {{ trans('app.option') }} |
---|---|---|---|---|---|---|
@if($inventory->image)
|
{{ $inventory->sku }} | {{ $inventory->title }} | {{ $inventory->condition }} | @if(($inventory->offer_price > 0) && ($inventory->offer_end > \Carbon\Carbon::now())) |