@extends('admin::layouts.app') @section('content') @method('PUT') {{ __('admin.offer') }} {{ __('admin.edit_offer') }} {{ __('admin.submit') }} {{ __('static.cancel') }} {{ __('admin.enter_the_details_below_for_edit_offers') }} {{ __('admin.select_branch') }} * {{ __('label.Select') }} @foreach($offer->branches as $offerBranch) {{ $locale == App\Helpers\ConstantHelper::ARABIC ? $offerBranch->name_ar : $offerBranch->name_en }} @endforeach @if (!auth()->user()->hasRole([App\Helpers\ConstantHelper::SUPER_ADMIN])) {{ __('admin.offer_type') }} * {{ __('label.Select') }} @if($offer->offer_type == App\Helpers\ConstantHelper::PROMOTION) {{ __( 'static.'.$offer->offer_type) }} @else {{ __('static.'.$offer->offer_type) }} @endif {{ __('admin.promotion_name_coupon_code') }}* @endif {{ __('admin.promotion_name_coupon_code') }} * {{ __('admin.generate_coupon_code') }} {{ __('admin.discount_value') }} (in pecentage) * {{ __('admin.usage_type') }} * {{ __('label.Select') }} @if($offer->usage_type == App\Helpers\ConstantHelper::UNLIMITED) {{ ucfirst($offer->usage_type) }} @else {{ ucfirst($offer->usage_type) }} / Person @endif {{ __('admin.start_date') }} * {{ __('admin.end_date') }} * {{ __('admin.select_services') }} * @foreach($offer->services as $offerServices) {{ $locale == App\Helpers\ConstantHelper::ARABIC ? $offerServices->name_ar : $offerServices->name_en }} @endforeach {{ __('admin.status_update') }} status == App\Helpers\ConstantHelper::ACTIVE ? 'checked' : ''}}> {{ __('admin.active') }} status == App\Helpers\ConstantHelper::IN_ACTIVE ? 'checked' : ''}}> {{ __('admin.inactive') }} @endsection @section('script') @endsection
{{ __('admin.edit_offer') }}