@extends("cms.layouts.app", ['page_id' => 'marketing']) @push("css") @endpush @push("js") @endpush @section("title") Marketing Costs @endsection @section("content")
{{ Form::select('excel_option', [ '1' => 'Excel File 1', '2' => 'Excel File 2', ], null, ['id' => 'excel-option', 'class' => "text-status font-weight-600 form-control form-control-sm", 'style' => 'min-width: 100px;']) }}
@php $file_names = \App\MarketingCost::select('file_name')->groupBy('file_name')->pluck('file_name', 'file_name')->toArray(); @endphp {{ Form::select('file_option', array_merge(['0' =>'Select File Name'], $file_names), null, ['id' => 'file-option', 'class' => "text-status font-weight-600 form-control form-control-sm", 'style' => 'min-width: 100px;']) }}
{{ Form::select('date_option', [ '1' => 'Date', '2' => 'Upload Date', ], null, ['id' => 'date-option', 'class' => "text-status font-weight-600 form-control form-control-sm", 'style' => 'min-width: 100px;']) }}
{{ Form::select('vat_status_option', [ '0' => 'All Status', '1' => '10% VAT & WHT', '2' => '10% VAT', '3' => 'WHT', '4' => 'NO VAT' ], null, ['id' => 'status-option', 'class' => "text-status font-weight-600 form-control form-control-sm", 'style' => 'min-width: 100px;']) }}
Date Upload Date File Name DEVP Marketing Costs {{ __('cms.status')}}
{{ Form::open(['route' => 'cms.analysts.marketing_import', 'method' => 'POST', 'id' => 'form_upload_excel', 'files' => true]) }} {{ Form::fileUpload('upload_marketing_file', null, [ 'multiple' => true, 'type' => 'document', 'accept' => '.xlsx, .xls, .csv', ]) }}
{{ Form::close() }}
@endsection