@extends('layouts.admin') @section('page-title') {{__('Manage Retainers')}} @endsection @section('breadcrumb') @if(\Auth::guard('customer')->check())
| {{__('Retainer')}} | @if(!\Auth::guard('customer')->check()){{__('Customer')}} | @endif{{__('Category')}} | {{__('Issue Date')}} | {{__('Status')}} | @if(Gate::check('edit proposal') || Gate::check('delete proposal') || Gate::check('show proposal')){{__('Action')}} | @endif {{--
{!! DNS1D::getBarcodeHTML($invoice->sku, "C128",1.4,22) !!}
{{$invoice->sku}} |
--}}
|
|---|---|---|---|---|---|---|---|
| @if(\Auth::guard('customer')->check()) {{ AUth::user()->retainerNumberFormat($retainer->retainer_id) }} @else {{ AUth::user()->retainerNumberFormat($retainer->retainer_id) }} @endif | @if(!\Auth::guard('customer')->check()){{!empty($retainer->customer)? $retainer->customer->name:'' }} | @endif{{ !empty($retainer->category)?$retainer->category->name:''}} | {{ Auth::user()->dateFormat($retainer->issue_date) }} | @if($retainer->status == 0) {{ __(\App\Models\retainer::$statues[$retainer->status]) }} @elseif($retainer->status == 1) {{ __(\App\Models\retainer::$statues[$retainer->status]) }} @elseif($retainer->status == 2) {{ __(\App\Models\retainer::$statues[$retainer->status]) }} @elseif($retainer->status == 3) {{ __(\App\Models\retainer::$statues[$retainer->status]) }} @elseif($retainer->status == 4) {{ __(\App\Models\retainer::$statues[$retainer->status]) }} @endif | @if(Gate::check('edit proposal') || Gate::check('delete proposal') || Gate::check('show proposal'))
@if($retainer->is_convert==0)
@can('convert invoice')
{!! Form::open(['method' => 'get', 'route' => ['retainer.convert', $retainer->id],'id'=>'proposal-form-'.$retainer->id]) !!}
{!! Form::close() !!}
@endcan
@else
@can('convert invoice')
@endcan
@endif
@can('duplicate proposal')
{!! Form::open(['method' => 'get', 'route' => ['retainer.duplicate', $retainer->id],'id'=>'duplicate-form-'.$retainer->id]) !!}
{!! Form::close() !!}
@endcan
@can('show proposal')
@if(\Auth::guard('customer')->check())
@else
@endif
@endcan
@can('edit proposal')
@endcan
@can('delete proposal')
@endcan
|
@endif