@extends('layouts.admin') @section('page-title') {{__('Manage Retainers')}} @endsection @section('breadcrumb') @if(\Auth::guard('customer')->check()) @else @endif @endsection @section('action-btn')
@endsection @push('css-page') @endpush @push('script-page') @endpush @section('content')
@if(!\Auth::guard('customer')->check()) {{ Form::open(array('route' => array('retainer.index'),'method' => 'GET','id'=>'frm_submit')) }} @else {{ Form::open(array('route' => array('customer.retainer'),'method' => 'GET','id'=>'frm_submit')) }} @endif
@if(!\Auth::guard('customer')->check())
{{ Form::label('customer', __('Customer'),['class'=>'text-type']) }} {{ Form::select('customer',$customer,isset($_GET['customer'])?$_GET['customer']:'', array('class' => 'form-control select')) }}
@endif
{{ Form::label('issue_date', __('Date'),['class'=>'text-type']) }} {{ Form::text('issue_date', isset($_GET['issue_date'])?$_GET['issue_date']:null, array('class' => 'form-control month-btn','id'=>'pc-daterangepicker-1','placeholder'=>"Select Date")) }}
{{ Form::label('status', __('Status'),['class'=>'text-type']) }} {{ Form::select('status', [''=>'Select Status']+$status,isset($_GET['status'])?$_GET['status']:'', array('class' => 'form-control select2')) }}
@if(\Auth::user()->type == 'company') @else @endif
{{ Form::close() }}
@if(!\Auth::guard('customer')->check()) @endif @if(Gate::check('edit proposal') || Gate::check('delete proposal') || Gate::check('show proposal')) @endif {{-- --}} @foreach ($retainers as $retainer) @if(!\Auth::guard('customer')->check()) @endif @if(Gate::check('edit proposal') || Gate::check('delete proposal') || Gate::check('show proposal')) @endif @endforeach
{{__('Retainer')}} {{__('Customer')}} {{__('Category')}} {{__('Issue Date')}} {{__('Status')}} {{__('Action')}} {!! 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 {{!empty($retainer->customer)? $retainer->customer->name:'' }} {{ !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($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')
{!! Form::open(['method' => 'DELETE', 'route' => ['retainer.destroy', $retainer->id],'id'=>'delete-form-'.$retainer->id]) !!} {!! Form::close() !!}
@endcan
@endsection