first upload all files
This commit is contained in:
@@ -0,0 +1,48 @@
|
||||
@extends('report::admin.reports.layout')
|
||||
|
||||
@section('filters')
|
||||
<div class="form-group">
|
||||
<label for="brand">{{ trans('report::admin.filters.brand') }}</label>
|
||||
|
||||
<input type="text" name="brand" class="form-control" id="brand" value="{{ $request->brand }}">
|
||||
</div>
|
||||
@endsection
|
||||
|
||||
@section('report_result')
|
||||
<h3 class="tab-content-title">
|
||||
{{ trans('report::admin.filters.report_types.branded_products_report') }}
|
||||
</h3>
|
||||
|
||||
<div class="table-responsive">
|
||||
<table class="table">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>{{ trans('report::admin.table.brand') }}</th>
|
||||
<th>{{ trans('report::admin.table.products_count') }}</th>
|
||||
</tr>
|
||||
</thead>
|
||||
|
||||
<tbody>
|
||||
@forelse ($report as $brand)
|
||||
<tr>
|
||||
<td>
|
||||
{{ $brand->name }}
|
||||
</td>
|
||||
|
||||
<td>
|
||||
{{ $brand->products_count }}
|
||||
</td>
|
||||
</tr>
|
||||
@empty
|
||||
<tr>
|
||||
<td class="empty" colspan="8">{{ trans('report::admin.no_data') }}</td>
|
||||
</tr>
|
||||
@endforelse
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
<div class="pull-right">
|
||||
{!! $report->links() !!}
|
||||
</div>
|
||||
</div>
|
||||
@endsection
|
||||
@@ -0,0 +1,48 @@
|
||||
@extends('report::admin.reports.layout')
|
||||
|
||||
@section('filters')
|
||||
<div class="form-group">
|
||||
<label for="category">{{ trans('report::admin.filters.category') }}</label>
|
||||
|
||||
<input type="text" name="category" class="form-control" id="category" value="{{ $request->category }}">
|
||||
</div>
|
||||
@endsection
|
||||
|
||||
@section('report_result')
|
||||
<h3 class="tab-content-title">
|
||||
{{ trans('report::admin.filters.report_types.categorized_products_report') }}
|
||||
</h3>
|
||||
|
||||
<div class="table-responsive">
|
||||
<table class="table">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>{{ trans('report::admin.table.category') }}</th>
|
||||
<th>{{ trans('report::admin.table.products_count') }}</th>
|
||||
</tr>
|
||||
</thead>
|
||||
|
||||
<tbody>
|
||||
@forelse ($report as $category)
|
||||
<tr>
|
||||
<td>
|
||||
{{ $category->name }}
|
||||
</td>
|
||||
|
||||
<td>
|
||||
{{ $category->products_count }}
|
||||
</td>
|
||||
</tr>
|
||||
@empty
|
||||
<tr>
|
||||
<td class="empty" colspan="8">{{ trans('report::admin.no_data') }}</td>
|
||||
</tr>
|
||||
@endforelse
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
<div class="pull-right">
|
||||
{!! $report->links() !!}
|
||||
</div>
|
||||
</div>
|
||||
@endsection
|
||||
@@ -0,0 +1,53 @@
|
||||
@extends('report::admin.reports.layout')
|
||||
|
||||
@section('filters')
|
||||
@include('report::admin.reports.filters.from')
|
||||
@include('report::admin.reports.filters.to')
|
||||
@include('report::admin.reports.filters.status')
|
||||
@include('report::admin.reports.filters.group')
|
||||
|
||||
<div class="form-group">
|
||||
<label for="coupon-code">{{ trans('report::admin.filters.coupon_code') }}</label>
|
||||
<input type="text" name="coupon_code" class="form-control" id="coupon-code" value="{{ $request->coupon_code }}">
|
||||
</div>
|
||||
@endsection
|
||||
|
||||
@section('report_result')
|
||||
<h3 class="tab-content-title">
|
||||
{{ trans('report::admin.filters.report_types.coupons_report') }}
|
||||
</h3>
|
||||
|
||||
<div class="table-responsive">
|
||||
<table class="table">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>{{ trans('report::admin.table.date') }}</th>
|
||||
<th>{{ trans('report::admin.table.coupon_name') }}</th>
|
||||
<th>{{ trans('report::admin.table.coupon_code') }}</th>
|
||||
<th>{{ trans('report::admin.table.orders') }}</th>
|
||||
<th>{{ trans('report::admin.table.total') }}</th>
|
||||
</tr>
|
||||
</thead>
|
||||
|
||||
<tbody>
|
||||
@forelse ($report as $data)
|
||||
<tr>
|
||||
<td>{{ $data->start_date->toFormattedDateString() }} - {{ $data->end_date->toFormattedDateString() }}</td>
|
||||
<td>{{ $data->name }}</td>
|
||||
<td>{{ $data->code }}</td>
|
||||
<td>{{ $data->total_orders }}</td>
|
||||
<td>{{ $data->total->format() }}</td>
|
||||
</tr>
|
||||
@empty
|
||||
<tr>
|
||||
<td class="empty" colspan="8">{{ trans('report::admin.no_data') }}</td>
|
||||
</tr>
|
||||
@endforelse
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
<div class="pull-right">
|
||||
{!! $report->links() !!}
|
||||
</div>
|
||||
</div>
|
||||
@endsection
|
||||
@@ -0,0 +1,62 @@
|
||||
@extends('report::admin.reports.layout')
|
||||
|
||||
@section('filters')
|
||||
@include('report::admin.reports.filters.from')
|
||||
@include('report::admin.reports.filters.to')
|
||||
@include('report::admin.reports.filters.status')
|
||||
@include('report::admin.reports.filters.group')
|
||||
|
||||
<div class="form-group">
|
||||
<label for="customer-name">{{ trans('report::admin.filters.customer_name') }}</label>
|
||||
<input type="text" name="customer_name" class="form-control" id="customer-name" value="{{ $request->customer_name }}">
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label for="customer-email">{{ trans('report::admin.filters.customer_email') }}</label>
|
||||
<input type="text" name="customer_email" class="form-control" id="customer-email" value="{{ $request->customer_email }}">
|
||||
</div>
|
||||
@endsection
|
||||
|
||||
@section('report_result')
|
||||
<h3 class="tab-content-title">
|
||||
{{ trans('report::admin.filters.report_types.customers_order_report') }}
|
||||
</h3>
|
||||
|
||||
<div class="table-responsive">
|
||||
<table class="table">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>{{ trans('report::admin.table.date') }}</th>
|
||||
<th>{{ trans('report::admin.table.customer_name') }}</th>
|
||||
<th>{{ trans('report::admin.table.customer_email') }}</th>
|
||||
<th>{{ trans('report::admin.table.customer_group') }}</th>
|
||||
<th>{{ trans('report::admin.table.orders') }}</th>
|
||||
<th>{{ trans('report::admin.table.products') }}</th>
|
||||
<th>{{ trans('report::admin.table.total') }}</th>
|
||||
</tr>
|
||||
</thead>
|
||||
|
||||
<tbody>
|
||||
@forelse ($report as $data)
|
||||
<tr>
|
||||
<td>{{ $data->start_date->toFormattedDateString() }} - {{ $data->end_date->toFormattedDateString() }}</td>
|
||||
<td>{{ $data->customer_full_name }}</td>
|
||||
<td>{{ $data->customer_email }}</td>
|
||||
<td>{{ is_null($data->customer_id) ? trans('report::admin.table.guest') : trans('report::admin.table.registered') }}</td>
|
||||
<td>{{ $data->total_orders }}</td>
|
||||
<td>{{ $data->total_products }}</td>
|
||||
<td>{{ $data->total->format() }}</td>
|
||||
</tr>
|
||||
@empty
|
||||
<tr>
|
||||
<td class="empty" colspan="8">{{ trans('report::admin.no_data') }}</td>
|
||||
</tr>
|
||||
@endforelse
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
<div class="pull-right">
|
||||
{!! $report->links() !!}
|
||||
</div>
|
||||
</div>
|
||||
@endsection
|
||||
@@ -0,0 +1,4 @@
|
||||
<div class="form-group">
|
||||
<label for="from">{{ trans('report::admin.filters.date_start') }}</label>
|
||||
<input type="text" name="from" class="form-control datetime-picker" id="from" data-default-date="{{ $request->from }}">
|
||||
</div>
|
||||
@@ -0,0 +1,13 @@
|
||||
<div class="form-group">
|
||||
<label for="group">{{ trans('report::admin.filters.group_by') }}</label>
|
||||
|
||||
<select name="group" id="group" class="custom-select-black">
|
||||
<option value="">{{ trans('report::admin.filters.please_select') }}</option>
|
||||
|
||||
@foreach (trans('report::admin.filters.groups') as $group => $label)
|
||||
<option value="{{ $group }}" {{ $request->group === $group ? 'selected' : '' }}>
|
||||
{{ $label }}
|
||||
</option>
|
||||
@endforeach
|
||||
</select>
|
||||
</div>
|
||||
@@ -0,0 +1,13 @@
|
||||
<div class="form-group">
|
||||
<label for="status">{{ trans('report::admin.filters.status') }}</label>
|
||||
|
||||
<select name="status" id="status" class="custom-select-black">
|
||||
<option value="">{{ trans('report::admin.filters.please_select') }}</option>
|
||||
|
||||
@foreach (trans('order::statuses') as $name => $label)
|
||||
<option value="{{ $name }}" {{ $request->status === $name ? 'selected' : '' }}>
|
||||
{{ $label }}
|
||||
</option>
|
||||
@endforeach
|
||||
</select>
|
||||
</div>
|
||||
@@ -0,0 +1,4 @@
|
||||
<div class="form-group">
|
||||
<label for="to">{{ trans('report::admin.filters.date_end') }}</label>
|
||||
<input type="text" name="to" class="form-control datetime-picker" id="to" data-default-date="{{ $request->to }}">
|
||||
</div>
|
||||
@@ -0,0 +1,47 @@
|
||||
@extends('admin::layout')
|
||||
|
||||
@component('admin::components.page.header')
|
||||
@slot('title', trans('report::admin.reports'))
|
||||
|
||||
<li class="active">{{ trans('report::admin.reports') }}</li>
|
||||
@endcomponent
|
||||
|
||||
@section('content')
|
||||
<div class="box box-primary report-wrapper">
|
||||
<div class="box-body">
|
||||
<div class="row">
|
||||
<div class="col-lg-9 col-md-8">
|
||||
<div class="report-result">
|
||||
@yield('report_result')
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="col-lg-3 col-md-4">
|
||||
<div class="filter-report clearfix">
|
||||
<h3 class="tab-content-title">{{ trans('report::admin.filter') }}</h3>
|
||||
|
||||
<form method="GET" action="{{ route('admin.reports.index') }}">
|
||||
<div class="form-group">
|
||||
<label for="report-type">{{ trans('report::admin.filters.report_type') }}</label>
|
||||
|
||||
<select name="type" id="report-type" class="custom-select-black">
|
||||
@foreach (trans('report::admin.filters.report_types') as $type => $label)
|
||||
<option value="{{ $type }}" {{ $request->type === $type ? 'selected' : '' }}>
|
||||
{{ $label }}
|
||||
</option>
|
||||
@endforeach
|
||||
</select>
|
||||
</div>
|
||||
|
||||
@yield('filters')
|
||||
|
||||
<button type="submit" class="btn btn-default" data-loading>
|
||||
{{ trans('report::admin.filter') }}
|
||||
</button>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@endsection
|
||||
@@ -0,0 +1,64 @@
|
||||
@extends('report::admin.reports.layout')
|
||||
|
||||
@section('filters')
|
||||
@include('report::admin.reports.filters.from')
|
||||
@include('report::admin.reports.filters.to')
|
||||
@include('report::admin.reports.filters.status')
|
||||
@include('report::admin.reports.filters.group')
|
||||
|
||||
<div class="form-group">
|
||||
<label for="product">{{ trans('report::admin.filters.product') }}</label>
|
||||
<input type="text" name="product" class="form-control" id="product" value="{{ $request->product }}">
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label for="sku">{{ trans('report::admin.filters.sku') }}</label>
|
||||
<input type="text" name="sku" class="form-control" id="sku" value="{{ $request->sku }}">
|
||||
</div>
|
||||
@endsection
|
||||
|
||||
@section('report_result')
|
||||
<h3 class="tab-content-title">
|
||||
{{ trans('report::admin.filters.report_types.products_purchase_report') }}
|
||||
</h3>
|
||||
|
||||
<div class="table-responsive">
|
||||
<table class="table">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>{{ trans('report::admin.table.date') }}</th>
|
||||
<th>{{ trans('report::admin.table.product') }}</th>
|
||||
<th>{{ trans('report::admin.table.qty') }}</th>
|
||||
<th>{{ trans('report::admin.table.total') }}</th>
|
||||
</tr>
|
||||
</thead>
|
||||
|
||||
<tbody>
|
||||
@forelse ($report as $product)
|
||||
<tr>
|
||||
<td>{{ $product->start_date->toFormattedDateString() }} - {{ $product->end_date->toFormattedDateString() }}</td>
|
||||
|
||||
<td>
|
||||
@if ($product->trashed())
|
||||
{{ $product->name }}
|
||||
@else
|
||||
<a href="{{ route('admin.products.edit', $product) }}">{{ $product->name }}</a>
|
||||
@endif
|
||||
</td>
|
||||
|
||||
<td>{{ $product->qty }}</td>
|
||||
<td>{{ $product->total->format() }}</td>
|
||||
</tr>
|
||||
@empty
|
||||
<tr>
|
||||
<td class="empty" colspan="8">{{ trans('report::admin.no_data') }}</td>
|
||||
</tr>
|
||||
@endforelse
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
<div class="pull-right">
|
||||
{!! $report->links() !!}
|
||||
</div>
|
||||
</div>
|
||||
@endsection
|
||||
@@ -0,0 +1,81 @@
|
||||
@extends('report::admin.reports.layout')
|
||||
|
||||
@section('filters')
|
||||
<div class="form-group">
|
||||
<label for="quantity-above">{{ trans('report::admin.filters.quantity_above') }}</label>
|
||||
<input type="number" name="quantity_above" class="form-control" id="quantity-above" value="{{ $request->quantity_above }}">
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label for="quantity-below">{{ trans('report::admin.filters.quantity_below') }}</label>
|
||||
<input type="number" name="quantity_below" class="form-control" id="quantity-below" value="{{ $request->quantity_below }}">
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label for="stock-availability">{{ trans('report::admin.filters.stock_availability') }}</label>
|
||||
|
||||
<select name="stock_availability" class="form-control custom-select-black" id="stock-availability">
|
||||
<option value="">{{ trans('report::admin.filters.please_select') }}</option>
|
||||
|
||||
<option value="in_stock" {{ request('stock_availability') === 'in_stock' ? 'selected' : '' }}>
|
||||
{{ trans('report::admin.filters.stock_availability_states.in_stock') }}
|
||||
</option>
|
||||
|
||||
<option value="out_of_stock" {{ request('stock_availability') === 'out_of_stock' ? 'selected' : '' }}>
|
||||
{{ trans('report::admin.filters.stock_availability_states.out_of_stock') }}
|
||||
</option>
|
||||
</select>
|
||||
</div>
|
||||
@endsection
|
||||
|
||||
@section('report_result')
|
||||
<h3 class="tab-content-title">
|
||||
{{ trans('report::admin.filters.report_types.products_stock_report') }}
|
||||
</h3>
|
||||
|
||||
<div class="table-responsive">
|
||||
<table class="table">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>{{ trans('report::admin.table.product') }}</th>
|
||||
<th>{{ trans('report::admin.table.qty') }}</th>
|
||||
<th>{{ trans('report::admin.table.stock_availability') }}</th>
|
||||
</tr>
|
||||
</thead>
|
||||
|
||||
<tbody>
|
||||
@forelse ($report as $product)
|
||||
<tr>
|
||||
<td>
|
||||
@if ($product->trashed())
|
||||
{{ $product->name }}
|
||||
@else
|
||||
<a href="{{ route('admin.products.edit', $product) }}">{{ $product->name }}</a>
|
||||
@endif
|
||||
</td>
|
||||
|
||||
<td>
|
||||
{!! $product->qty ?: '—' !!}
|
||||
</td>
|
||||
|
||||
<td>
|
||||
@if ($product->isInStock())
|
||||
{{ trans('report::admin.filters.stock_availability_states.in_stock') }}
|
||||
@else
|
||||
{{ trans('report::admin.filters.stock_availability_states.out_of_stock') }}
|
||||
@endif
|
||||
</td>
|
||||
</tr>
|
||||
@empty
|
||||
<tr>
|
||||
<td class="empty" colspan="8">{{ trans('report::admin.no_data') }}</td>
|
||||
</tr>
|
||||
@endforelse
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
<div class="pull-right">
|
||||
{!! $report->links() !!}
|
||||
</div>
|
||||
</div>
|
||||
@endsection
|
||||
@@ -0,0 +1,56 @@
|
||||
@extends('report::admin.reports.layout')
|
||||
|
||||
@section('filters')
|
||||
<div class="form-group">
|
||||
<label for="product">{{ trans('report::admin.filters.product') }}</label>
|
||||
<input type="text" name="product" class="form-control" id="product" value="{{ $request->product }}">
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label for="sku">{{ trans('report::admin.filters.sku') }}</label>
|
||||
<input type="text" name="sku" class="form-control" id="sku" value="{{ $request->sku }}">
|
||||
</div>
|
||||
@endsection
|
||||
|
||||
@section('report_result')
|
||||
<h3 class="tab-content-title">
|
||||
{{ trans('report::admin.filters.report_types.products_view_report') }}
|
||||
</h3>
|
||||
|
||||
<div class="table-responsive">
|
||||
<table class="table">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>{{ trans('report::admin.table.product') }}</th>
|
||||
<th>{{ trans('report::admin.table.views') }}</th>
|
||||
</tr>
|
||||
</thead>
|
||||
|
||||
<tbody>
|
||||
@forelse ($report as $product)
|
||||
<tr>
|
||||
<td>
|
||||
@if ($product->trashed())
|
||||
{{ $product->name }}
|
||||
@else
|
||||
<a href="{{ route('admin.products.edit', $product) }}">{{ $product->name }}</a>
|
||||
@endif
|
||||
</td>
|
||||
|
||||
<td>
|
||||
{{ $product->viewed }}
|
||||
</td>
|
||||
</tr>
|
||||
@empty
|
||||
<tr>
|
||||
<td class="empty" colspan="8">{{ trans('report::admin.no_data') }}</td>
|
||||
</tr>
|
||||
@endforelse
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
<div class="pull-right">
|
||||
{!! $report->links() !!}
|
||||
</div>
|
||||
</div>
|
||||
@endsection
|
||||
@@ -0,0 +1,54 @@
|
||||
@extends('report::admin.reports.layout')
|
||||
|
||||
@section('filters')
|
||||
@include('report::admin.reports.filters.from')
|
||||
@include('report::admin.reports.filters.to')
|
||||
@include('report::admin.reports.filters.status')
|
||||
@include('report::admin.reports.filters.group')
|
||||
@endsection
|
||||
|
||||
@section('report_result')
|
||||
<h3 class="tab-content-title">
|
||||
{{ trans('report::admin.filters.report_types.sales_report') }}
|
||||
</h3>
|
||||
|
||||
<div class="table-responsive">
|
||||
<table class="table">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>{{ trans('report::admin.table.date') }}</th>
|
||||
<th>{{ trans('report::admin.table.orders') }}</th>
|
||||
<th>{{ trans('report::admin.table.products') }}</th>
|
||||
<th>{{ trans('report::admin.table.subtotal') }}</th>
|
||||
<th>{{ trans('report::admin.table.shipping') }}</th>
|
||||
<th>{{ trans('report::admin.table.discount') }}</th>
|
||||
<th>{{ trans('report::admin.table.tax') }}</th>
|
||||
<th>{{ trans('report::admin.table.total') }}</th>
|
||||
</tr>
|
||||
</thead>
|
||||
|
||||
<tbody>
|
||||
@forelse ($report as $data)
|
||||
<tr>
|
||||
<td>{{ $data->start_date->toFormattedDateString() }} - {{ $data->end_date->toFormattedDateString() }}</td>
|
||||
<td>{{ $data->total_orders }}</td>
|
||||
<td>{{ $data->total_products }}</td>
|
||||
<td>{{ $data->sub_total->format() }}</td>
|
||||
<td>{{ $data->shipping_cost->format() }}</td>
|
||||
<td>{{ $data->discount->format() }}</td>
|
||||
<td>{{ $data->tax->format() }}</td>
|
||||
<td>{{ $data->total->format() }}</td>
|
||||
</tr>
|
||||
@empty
|
||||
<tr>
|
||||
<td class="empty" colspan="8">{{ trans('report::admin.no_data') }}</td>
|
||||
</tr>
|
||||
@endforelse
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
<div class="pull-right">
|
||||
{!! $report->links() !!}
|
||||
</div>
|
||||
</div>
|
||||
@endsection
|
||||
@@ -0,0 +1,44 @@
|
||||
@extends('report::admin.reports.layout')
|
||||
|
||||
@section('filters')
|
||||
<div class="form-group">
|
||||
<label for="keyword">{{ trans('report::admin.filters.keyword') }}</label>
|
||||
<input type="text" name="keyword" class="form-control" id="keyword" value="{{ $request->keyword }}">
|
||||
</div>
|
||||
@endsection
|
||||
|
||||
@section('report_result')
|
||||
<h3 class="tab-content-title">
|
||||
{{ trans('report::admin.filters.report_types.search_report') }}
|
||||
</h3>
|
||||
|
||||
<div class="table-responsive">
|
||||
<table class="table">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>{{ trans('report::admin.table.keyword') }}</th>
|
||||
<th>{{ trans('report::admin.table.results') }}</th>
|
||||
<th>{{ trans('report::admin.table.hits') }}</th>
|
||||
</tr>
|
||||
</thead>
|
||||
|
||||
<tbody>
|
||||
@forelse ($report as $data)
|
||||
<tr>
|
||||
<td>{{ $data->term }}</td>
|
||||
<td>{{ $data->results }}</td>
|
||||
<td>{{ $data->hits }}</td>
|
||||
</tr>
|
||||
@empty
|
||||
<tr>
|
||||
<td class="empty" colspan="8">{{ trans('report::admin.no_data') }}</td>
|
||||
</tr>
|
||||
@endforelse
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
<div class="pull-right">
|
||||
{!! $report->links() !!}
|
||||
</div>
|
||||
</div>
|
||||
@endsection
|
||||
@@ -0,0 +1,60 @@
|
||||
@extends('report::admin.reports.layout')
|
||||
|
||||
@section('filters')
|
||||
@include('report::admin.reports.filters.from')
|
||||
@include('report::admin.reports.filters.to')
|
||||
@include('report::admin.reports.filters.status')
|
||||
@include('report::admin.reports.filters.group')
|
||||
|
||||
<div class="form-group">
|
||||
<label for="shipping-method">{{ trans('report::admin.filters.shipping_method') }}</label>
|
||||
|
||||
<select name="shipping_method" id="shipping-method" class="custom-select-black">
|
||||
<option value="">{{ trans('report::admin.filters.please_select') }}</option>
|
||||
|
||||
@foreach ($shippingMethods as $name => $shippingMethod)
|
||||
<option value="{{ $name }}" {{ $request->shipping_method === $name ? 'selected' : '' }}>
|
||||
{{ $shippingMethod->label }}
|
||||
</option>
|
||||
@endforeach
|
||||
</select>
|
||||
</div>
|
||||
@endsection
|
||||
|
||||
@section('report_result')
|
||||
<h3 class="tab-content-title">
|
||||
{{ trans('report::admin.filters.report_types.shipping_report') }}
|
||||
</h3>
|
||||
|
||||
<div class="table-responsive">
|
||||
<table class="table">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>{{ trans('report::admin.table.date') }}</th>
|
||||
<th>{{ trans('report::admin.table.shipping_method') }}</th>
|
||||
<th>{{ trans('report::admin.table.orders') }}</th>
|
||||
<th>{{ trans('report::admin.table.total') }}</th>
|
||||
</tr>
|
||||
</thead>
|
||||
|
||||
<tbody>
|
||||
@forelse ($report as $data)
|
||||
<tr>
|
||||
<td>{{ $data->start_date->toFormattedDateString() }} - {{ $data->end_date->toFormattedDateString() }}</td>
|
||||
<td>{{ $data->shipping_method }}</td>
|
||||
<td>{{ $data->total_orders }}</td>
|
||||
<td>{{ $data->total->format() }}</td>
|
||||
</tr>
|
||||
@empty
|
||||
<tr>
|
||||
<td class="empty" colspan="8">{{ trans('report::admin.no_data') }}</td>
|
||||
</tr>
|
||||
@endforelse
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
<div class="pull-right">
|
||||
{!! $report->links() !!}
|
||||
</div>
|
||||
</div>
|
||||
@endsection
|
||||
@@ -0,0 +1,48 @@
|
||||
@extends('report::admin.reports.layout')
|
||||
|
||||
@section('filters')
|
||||
<div class="form-group">
|
||||
<label for="tag">{{ trans('report::admin.filters.tag') }}</label>
|
||||
|
||||
<input type="text" name="tag" class="form-control" id="tag" value="{{ $request->tag }}">
|
||||
</div>
|
||||
@endsection
|
||||
|
||||
@section('report_result')
|
||||
<h3 class="tab-content-title">
|
||||
{{ trans('report::admin.filters.report_types.tagged_products_report') }}
|
||||
</h3>
|
||||
|
||||
<div class="table-responsive">
|
||||
<table class="table">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>{{ trans('report::admin.table.tag') }}</th>
|
||||
<th>{{ trans('report::admin.table.products_count') }}</th>
|
||||
</tr>
|
||||
</thead>
|
||||
|
||||
<tbody>
|
||||
@forelse ($report as $tag)
|
||||
<tr>
|
||||
<td>
|
||||
{{ $tag->name }}
|
||||
</td>
|
||||
|
||||
<td>
|
||||
{{ $tag->products_count }}
|
||||
</td>
|
||||
</tr>
|
||||
@empty
|
||||
<tr>
|
||||
<td class="empty" colspan="8">{{ trans('report::admin.no_data') }}</td>
|
||||
</tr>
|
||||
@endforelse
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
<div class="pull-right">
|
||||
{!! $report->links() !!}
|
||||
</div>
|
||||
</div>
|
||||
@endsection
|
||||
@@ -0,0 +1,51 @@
|
||||
@extends('report::admin.reports.layout')
|
||||
|
||||
@section('filters')
|
||||
@include('report::admin.reports.filters.from')
|
||||
@include('report::admin.reports.filters.to')
|
||||
@include('report::admin.reports.filters.status')
|
||||
@include('report::admin.reports.filters.group')
|
||||
|
||||
<div class="form-group">
|
||||
<label for="tax-name">{{ trans('report::admin.filters.tax_name') }}</label>
|
||||
<input type="text" name="tax_name" class="form-control" id="tax-name" value="{{ $request->tax_name }}">
|
||||
</div>
|
||||
@endsection
|
||||
|
||||
@section('report_result')
|
||||
<h3 class="tab-content-title">
|
||||
{{ trans('report::admin.filters.report_types.tax_report') }}
|
||||
</h3>
|
||||
|
||||
<div class="table-responsive">
|
||||
<table class="table">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>{{ trans('report::admin.table.date') }}</th>
|
||||
<th>{{ trans('report::admin.table.tax_name') }}</th>
|
||||
<th>{{ trans('report::admin.table.orders') }}</th>
|
||||
<th>{{ trans('report::admin.table.total') }}</th>
|
||||
</tr>
|
||||
</thead>
|
||||
|
||||
<tbody>
|
||||
@forelse ($report as $data)
|
||||
<tr>
|
||||
<td>{{ $data->start_date->toFormattedDateString() }} - {{ $data->end_date->toFormattedDateString() }}</td>
|
||||
<td>{{ $data->name }}</td>
|
||||
<td>{{ $data->total_orders }}</td>
|
||||
<td>{{ $data->total->format() }}</td>
|
||||
</tr>
|
||||
@empty
|
||||
<tr>
|
||||
<td class="empty" colspan="8">{{ trans('report::admin.no_data') }}</td>
|
||||
</tr>
|
||||
@endforelse
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
<div class="pull-right">
|
||||
{!! $report->links() !!}
|
||||
</div>
|
||||
</div>
|
||||
@endsection
|
||||
@@ -0,0 +1,56 @@
|
||||
@extends('report::admin.reports.layout')
|
||||
|
||||
@section('filters')
|
||||
<div class="form-group">
|
||||
<label for="tax-class">{{ trans('report::admin.filters.tax_class') }}</label>
|
||||
|
||||
<select name="tax_class" id="tax-class" class="form-control">
|
||||
<option value="">{{ trans('report::admin.filters.please_select') }}</option>
|
||||
|
||||
@foreach ($taxClasses as $id => $label)
|
||||
<option value="{{ $id }}" {{ request('tax_class') == $id ? 'selected' : '' }}>
|
||||
{{ $label }}
|
||||
</option>
|
||||
@endforeach
|
||||
</select>
|
||||
</div>
|
||||
@endsection
|
||||
|
||||
@section('report_result')
|
||||
<h3 class="tab-content-title">
|
||||
{{ trans('report::admin.filters.report_types.taxed_products_report') }}
|
||||
</h3>
|
||||
|
||||
<div class="table-responsive">
|
||||
<table class="table">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>{{ trans('report::admin.table.tax_class') }}</th>
|
||||
<th>{{ trans('report::admin.table.products_count') }}</th>
|
||||
</tr>
|
||||
</thead>
|
||||
|
||||
<tbody>
|
||||
@forelse ($report as $taxClass)
|
||||
<tr>
|
||||
<td>
|
||||
{{ $taxClass->label }}
|
||||
</td>
|
||||
|
||||
<td>
|
||||
{{ $taxClass->products_count }}
|
||||
</td>
|
||||
</tr>
|
||||
@empty
|
||||
<tr>
|
||||
<td class="empty" colspan="8">{{ trans('report::admin.no_data') }}</td>
|
||||
</tr>
|
||||
@endforelse
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
<div class="pull-right">
|
||||
{!! $report->links() !!}
|
||||
</div>
|
||||
</div>
|
||||
@endsection
|
||||
Reference in New Issue
Block a user