@extends('layouts.admin') @section('page-title') {{__('Manage Proposals')}} @endsection @section('breadcrumb') @endsection @section('action-btn')
{{-- --}} @can('create proposal') @endcan
@endsection @push('css-page') @endpush @push('script-page') @endpush @section('content')
@if(!\Auth::guard('customer')->check()) {{ Form::open(array('route' => array('proposal.index'),'method' => 'GET','id'=>'frm_submit')) }} @else {{ Form::open(array('route' => array('customer.proposal'),'method' => 'GET','id'=>'frm_submit')) }} @endif
@if(!\Auth::guard('customer')->check())
{{ Form::label('customer', __('Customer'),['class'=>'form-label']) }} {{ Form::select('customer',$customer,isset($_GET['customer'])?$_GET['customer']:'', array('class' => 'form-control select')) }}
@endif
{{ Form::label('issue_date', __('Date'),['class'=>'form-label']) }} {{ Form::text('issue_date', isset($_GET['issue_date'])?$_GET['issue_date']:null, array('class' => 'form-control month-btn','id'=>'pc-daterangepicker-1')) }}
{{ Form::label('status', __('Status'),['class'=>'form-label']) }} {{ Form::select('status', [ ''=>'Select Status'] + $status,isset($_GET['status'])?$_GET['status']:'', array('class' => 'form-control select')) }}
{{ Form::close() }}
@if(!\Auth::guard('customer')->check()) @endif @if(Gate::check('edit proposal') || Gate::check('delete proposal') || Gate::check('show proposal')) @endif {{-- --}} @foreach ($proposals as $proposal) @if(!\Auth::guard('customer')->check()) @endif @if(Gate::check('edit proposal') || Gate::check('delete proposal') || Gate::check('show proposal')) @endif @endforeach
{{__('Proposal')}} {{__('Customer')}} {{__('Category')}} {{__('Issue Date')}} {{__('Status')}} {{__('Action')}} {!! DNS1D::getBarcodeHTML($invoice->sku, "C128",1.4,22) !!}

{{$invoice->sku}}

@if(\Auth::guard('customer')->check()) {{ AUth::user()->proposalNumberFormat($proposal->proposal_id) }} @else {{ AUth::user()->proposalNumberFormat($proposal->proposal_id) }} @endif {{!empty($proposal->customer)? $proposal->customer->name:'' }} {{ !empty($proposal->category)?$proposal->category->name:''}} {{ Auth::user()->dateFormat($proposal->issue_date) }} @if($proposal->status == 0) {{ __(\App\Models\Proposal::$statues[$proposal->status]) }} @elseif($proposal->status == 1) {{ __(\App\Models\Proposal::$statues[$proposal->status]) }} @elseif($proposal->status == 2) {{ __(\App\Models\Proposal::$statues[$proposal->status]) }} @elseif($proposal->status == 3) {{ __(\App\Models\Proposal::$statues[$proposal->status]) }} @elseif($proposal->status == 4) {{ __(\App\Models\Proposal::$statues[$proposal->status]) }} @endif @if($proposal->is_convert==0) @can('convert invoice')
{!! Form::open(['method' => 'get', 'route' => ['proposal.convert', $proposal->id],'id'=>'proposal-form-'.$proposal->id]) !!} {!! Form::close() !!}
@endcan @else @can('convert invoice') @endcan @endif @can('duplicate proposal')
{!! Form::open(['method' => 'get', 'route' => ['proposal.duplicate', $proposal->id],'id'=>'duplicate-form-'.$proposal->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' => ['proposal.destroy', $proposal->id],'id'=>'delete-form-'.$proposal->id]) !!} {!! Form::close() !!}
@endcan
@endsection