dbfdg @extends('layouts.admin') @section('page-title') {{ __('Manage Quotation') }} @endsection @section('breadcrumb') @endsection @push('script-page') @endpush @section('action-btn')
{{-- --}} {{-- --}} {{-- --}} @can('create quotation') {{-- --}} @endcan
@endsection @section('content')
@if (Gate::check('edit quotation') || Gate::check('delete quotation') || Gate::check('convert quotation')) @endif @foreach ($quotations as $quotation) @if (Gate::check('edit quotation') || Gate::check('delete quotation') || Gate::check('convert quotation')) @endif @endforeach
{{ __('Quotataion ID') }} {{ __('Date') }} {{ __('Customer') }} {{ __('Warehouse') }} {{ __('Action') }}
{{ Auth::user()->quotationNumberFormat($quotation->quotation_id) }} {{ Auth::user()->dateFormat($quotation->quotation_date) }} {{ !empty($quotation->customer) ? $quotation->customer->name : '' }} {{ !empty($quotation->warehouse) ? $quotation->warehouse->name : '' }} @if ($quotation->is_converted == 0) @can('convert quotation') @endcan @else {{-- @can('show pos') --}} {{-- @endcan --}} @endif @can('edit quotation') @endcan @can('delete quotation')
{!! Form::open([ 'method' => 'DELETE', 'route' => ['quotation.destroy', $quotation->id], 'class' => 'delete-form-btn', 'id' => 'delete-form-' . $quotation->id, ]) !!} {!! Form::close() !!}
@endcan
@endsection